Kaydet (Commit) 638ec772 authored tarafından Noel Grandin's avatar Noel Grandin

convert DELETEX to DELETEZ

one of these is bad enough

Change-Id: Ifc40f3e3c067bb715c6befab9193d22d0c56a6e7
Reviewed-on: https://gerrit.libreoffice.org/53960Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 34394d22
......@@ -102,14 +102,14 @@ void SfxApplication::Deinitialize()
// from here no SvObjects have to exists
DELETEZ(pImpl->pMatcher);
DELETEX(SfxSlotPool, pImpl->pSlotPool);
DELETEX(SfxChildWinFactArr_Impl, pImpl->pFactArr);
DELETEX(SfxTbxCtrlFactArr_Impl, pImpl->pTbxCtrlFac);
DELETEX(SfxStbCtrlFactArr_Impl, pImpl->pStbCtrlFac);
DELETEX(SfxViewFrameArr_Impl, pImpl->pViewFrames);
DELETEX(SfxViewShellArr_Impl, pImpl->pViewShells);
DELETEX(SfxObjectShellArr_Impl, pImpl->pObjShells);
DELETEZ(pImpl->pSlotPool);
DELETEZ(pImpl->pFactArr);
DELETEZ(pImpl->pTbxCtrlFac);
DELETEZ(pImpl->pStbCtrlFac);
DELETEZ(pImpl->pViewFrames);
DELETEZ(pImpl->pViewShells);
DELETEZ(pImpl->pObjShells);
//TODO/CLEANUP
//ReleaseArgs could be used instead!
......
......@@ -809,7 +809,7 @@ void SfxCommonTemplateDialog_Impl::impl_clear()
pStyleFamilies = nullptr;
sal_uInt16 i;
for ( i = 0; i < MAX_FAMILIES; ++i )
DELETEX(SfxTemplateItem, pFamilyState[i]);
DELETEZ(pFamilyState[i]);
for ( i = 0; i < COUNT_BOUND_FUNC; ++i )
delete pBoundItems[i];
pCurObjShell = nullptr;
......
......@@ -309,7 +309,7 @@ SfxObjectShell::~SfxObjectShell()
SfxObjectShell::CloseInternal();
pImpl->pBaseModel.set( nullptr );
DELETEX(AutoReloadTimer_Impl, pImpl->pReloadTimer );
DELETEZ( pImpl->pReloadTimer );
SfxApplication *pSfxApp = SfxGetpApp();
if ( USHRT_MAX != pImpl->nVisualDocumentNumber )
......@@ -344,7 +344,7 @@ SfxObjectShell::~SfxObjectShell()
if ( IsDocShared() && pMedium )
FreeSharedFile( pMedium->GetURLObject().GetMainURL( INetURLObject::DecodeMechanism::NONE ) );
#endif
DELETEX( SfxMedium, pMedium );
DELETEZ( pMedium );
}
// The removing of the temporary file must be done as the latest step in the document destruction
......
......@@ -29,16 +29,6 @@
#define DELETEZ(pPtr) ( delete pPtr, pPtr = 0 )
#endif
#ifndef DELETEX
#ifdef DBG_UTIL
#define DELETEX(T, pPtr) \
( delete pPtr, pPtr = reinterpret_cast<T *>(sal_IntPtr(-1)) )
#else
#define DELETEX(T, pPtr) delete pPtr
#endif
#endif
#if defined(DBG_UTIL)
class SfxStack
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment