expand out DELETEZ
Change-Id: Ia69fb105c6cc661ac94a360d47655b3faa9d6bb8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100618 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -726,8 +726,10 @@ SvxNumRule::~SvxNumRule()
|
|||||||
{
|
{
|
||||||
if(!--nRefCount)
|
if(!--nRefCount)
|
||||||
{
|
{
|
||||||
DELETEZ(pStdNumFmt);
|
delete pStdNumFmt;
|
||||||
DELETEZ(pStdOutlineNumFmt);
|
pStdNumFmt = nullptr;
|
||||||
|
delete pStdOutlineNumFmt;
|
||||||
|
pStdOutlineNumFmt = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -85,8 +85,10 @@ void OStartMarker::dispose()
|
|||||||
{
|
{
|
||||||
if ( osl_atomic_decrement(&s_nImageRefCount) == 0 )
|
if ( osl_atomic_decrement(&s_nImageRefCount) == 0 )
|
||||||
{
|
{
|
||||||
DELETEZ(s_pDefCollapsed);
|
delete s_pDefCollapsed;
|
||||||
DELETEZ(s_pDefExpanded);
|
s_pDefCollapsed = nullptr;
|
||||||
|
delete s_pDefExpanded;
|
||||||
|
s_pDefExpanded = nullptr;
|
||||||
}
|
}
|
||||||
m_aVRuler.disposeAndClear();
|
m_aVRuler.disposeAndClear();
|
||||||
m_aText.disposeAndClear();
|
m_aText.disposeAndClear();
|
||||||
|
@@ -306,7 +306,10 @@ void SotStorage::CreateStorage( bool bForceUCBStorage, StreamMode nMode )
|
|||||||
// check the stream
|
// check the stream
|
||||||
m_pStorStm = ::utl::UcbStreamHelper::CreateStream( m_aName, nMode ).release();
|
m_pStorStm = ::utl::UcbStreamHelper::CreateStream( m_aName, nMode ).release();
|
||||||
if ( m_pStorStm && m_pStorStm->GetError() )
|
if ( m_pStorStm && m_pStorStm->GetError() )
|
||||||
DELETEZ( m_pStorStm );
|
{
|
||||||
|
delete m_pStorStm;
|
||||||
|
m_pStorStm = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
if ( m_pStorStm )
|
if ( m_pStorStm )
|
||||||
{
|
{
|
||||||
@@ -319,7 +322,8 @@ void SotStorage::CreateStorage( bool bForceUCBStorage, StreamMode nMode )
|
|||||||
if ( bIsUCBStorage )
|
if ( bIsUCBStorage )
|
||||||
{
|
{
|
||||||
// UCBStorage always works directly on the UCB content, so discard the stream first
|
// UCBStorage always works directly on the UCB content, so discard the stream first
|
||||||
DELETEZ( m_pStorStm );
|
delete m_pStorStm;
|
||||||
|
m_pStorStm = nullptr;
|
||||||
m_pOwnStg = new UCBStorage( m_aName, nMode, true, true/*bIsRoot*/ );
|
m_pOwnStg = new UCBStorage( m_aName, nMode, true, true/*bIsRoot*/ );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -542,7 +542,8 @@ void SfxItemPool::SetPoolDefaultItem(const SfxPoolItem &rItem)
|
|||||||
if (rOldDefault)
|
if (rOldDefault)
|
||||||
{
|
{
|
||||||
rOldDefault->SetRefCount(0);
|
rOldDefault->SetRefCount(0);
|
||||||
DELETEZ(rOldDefault);
|
delete rOldDefault;
|
||||||
|
rOldDefault = nullptr;
|
||||||
}
|
}
|
||||||
rOldDefault = pNewDefault;
|
rOldDefault = pNewDefault;
|
||||||
}
|
}
|
||||||
@@ -567,7 +568,8 @@ void SfxItemPool::ResetPoolDefaultItem( sal_uInt16 nWhichId )
|
|||||||
if (rOldDefault)
|
if (rOldDefault)
|
||||||
{
|
{
|
||||||
rOldDefault->SetRefCount(0);
|
rOldDefault->SetRefCount(0);
|
||||||
DELETEZ(rOldDefault);
|
delete rOldDefault;
|
||||||
|
rOldDefault = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( pImpl->mpSecondary )
|
else if ( pImpl->mpSecondary )
|
||||||
|
@@ -525,7 +525,7 @@ namespace svt
|
|||||||
EditCellController::~EditCellController( )
|
EditCellController::~EditCellController( )
|
||||||
{
|
{
|
||||||
if ( m_bOwnImplementation )
|
if ( m_bOwnImplementation )
|
||||||
DELETEZ( m_pEditImplementation );
|
delete m_pEditImplementation;
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditCellController::SaveValue()
|
void EditCellController::SaveValue()
|
||||||
|
@@ -379,7 +379,8 @@ SvtAccessibilityOptions::~SvtAccessibilityOptions()
|
|||||||
{
|
{
|
||||||
//if( sm_pSingleImplConfig->IsModified() )
|
//if( sm_pSingleImplConfig->IsModified() )
|
||||||
// sm_pSingleImplConfig->Commit();
|
// sm_pSingleImplConfig->Commit();
|
||||||
DELETEZ( sm_pSingleImplConfig );
|
delete sm_pSingleImplConfig;
|
||||||
|
sm_pSingleImplConfig = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user