silence false positive warnings in non DBG_UTIL builds
Change-Id: I80428ebe570584fc7a31581207da0b27a16949af Reviewed-on: https://gerrit.libreoffice.org/29244 Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
This commit is contained in:
@@ -507,9 +507,7 @@ void SfxItemPool::Delete()
|
||||
for (auto& rItemPtr : *rArrayPtr)
|
||||
if (rItemPtr)
|
||||
{
|
||||
#ifdef DBG_UTIL
|
||||
ReleaseRef(*rItemPtr, rItemPtr->GetRefCount());
|
||||
#endif
|
||||
ReleaseRef(*rItemPtr, rItemPtr->GetRefCount()); // for RefCount check in dtor
|
||||
delete rItemPtr;
|
||||
}
|
||||
rArrayPtr->clear();
|
||||
@@ -536,9 +534,7 @@ void SfxItemPool::Delete()
|
||||
for (auto& rItemPtr : *rArrayPtr)
|
||||
if (rItemPtr)
|
||||
{
|
||||
#ifdef DBG_UTIL
|
||||
ReleaseRef(*rItemPtr, rItemPtr->GetRefCount());
|
||||
#endif
|
||||
ReleaseRef(*rItemPtr, rItemPtr->GetRefCount()); // for RefCount check in dtor
|
||||
delete rItemPtr;
|
||||
}
|
||||
rArrayPtr->clear();
|
||||
|
Reference in New Issue
Block a user