summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-08-12 11:15:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-08-12 22:04:55 +0200
commitd4df251320ba266ff3fe3da9e3b991c18ea50f5c (patch)
tree99d099231c1e44d714ec485baea7be6456817070 /svl
parent2cb40c77cd05c1cb5a85468ff9801051829871e4 (diff)
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>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/itempool.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx
index 82668c909a35..6deec84947c0 100644
--- a/svl/source/items/itempool.cxx
+++ b/svl/source/items/itempool.cxx
@@ -542,7 +542,8 @@ void SfxItemPool::SetPoolDefaultItem(const SfxPoolItem &rItem)
if (rOldDefault)
{
rOldDefault->SetRefCount(0);
- DELETEZ(rOldDefault);
+ delete rOldDefault;
+ rOldDefault = nullptr;
}
rOldDefault = pNewDefault;
}
@@ -567,7 +568,8 @@ void SfxItemPool::ResetPoolDefaultItem( sal_uInt16 nWhichId )
if (rOldDefault)
{
rOldDefault->SetRefCount(0);
- DELETEZ(rOldDefault);
+ delete rOldDefault;
+ rOldDefault = nullptr;
}
}
else if ( pImpl->mpSecondary )