summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-08-12 13:24:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-08-12 22:27:16 +0200
commit0a8ce55f715156d72d38b4416ada33cd0d9b237f (patch)
tree980ad57a1f763add6fab1c03691b8baeb95fbbf6 /sfx2
parentd4df251320ba266ff3fe3da9e3b991c18ea50f5c (diff)
expand out DELETEZ
Change-Id: I5460de0f54a0d7c1a18ce8f1fa33ef3405d8183c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100622 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/bindings.cxx5
-rw-r--r--sfx2/source/control/statcach.cxx5
2 files changed, 8 insertions, 2 deletions
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx
index 94b9fea11e4b..ce4d3a4230d4 100644
--- a/sfx2/source/control/bindings.cxx
+++ b/sfx2/source/control/bindings.cxx
@@ -1591,7 +1591,10 @@ SfxItemState SfxBindings::QueryState( sal_uInt16 nSlot, std::unique_ptr<SfxPoolI
xBind->Release();
xBind.clear();
if ( bDeleteCache )
- DELETEZ( pCache );
+ {
+ delete pCache;
+ pCache = nullptr;
+ }
return eState;
}
}
diff --git a/sfx2/source/control/statcach.cxx b/sfx2/source/control/statcach.cxx
index dfdc10f83687..b71b96a62579 100644
--- a/sfx2/source/control/statcach.cxx
+++ b/sfx2/source/control/statcach.cxx
@@ -428,7 +428,10 @@ void SfxStateCache::SetState_Impl
// Remember new value
if ( !IsInvalidItem(pLastItem) )
- DELETEZ(pLastItem);
+ {
+ delete pLastItem;
+ pLastItem = nullptr;
+ }
if ( pState && !IsInvalidItem(pState) )
pLastItem = pState->Clone();
else