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:
Jochen Nitschke
2016-09-24 18:50:54 +02:00
parent 524dba884d
commit b4cf309bab

View File

@@ -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();