[Libreoffice-commits] core.git: svl/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Sep 17 13:18:55 UTC 2018
svl/source/items/stylepool.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 88ec498f1d287dced1a9ca095a0776b14a023891
Author: himajin100000 <himajin100000 at gmail.com>
AuthorDate: Sun Sep 16 18:54:16 2018 +0900
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Sep 17 15:18:33 2018 +0200
adapt to commit 1476d95b6ed3afa35ccc
Change-Id: Ie6582b324d4c7feb8dbc7cac852b2c52358a052a
Reviewed-on: https://gerrit.libreoffice.org/60547
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/svl/source/items/stylepool.cxx b/svl/source/items/stylepool.cxx
index cdda2f9de0e3..9ea2b42f9ff0 100644
--- a/svl/source/items/stylepool.cxx
+++ b/svl/source/items/stylepool.cxx
@@ -417,7 +417,7 @@ std::shared_ptr<SfxItemSet> StylePoolImpl::insertItemSet( const SfxItemSet& rSet
#ifdef DEBUG
{
sal_Int32 nCheck = -1;
- IStylePoolIteratorAccess* pIter = createIterator(false,false);
+ std::unique_ptr<IStylePoolIteratorAccess> pIter = createIterator(false,false);
std::shared_ptr<SfxItemSet> pTemp;
do
{
@@ -425,7 +425,6 @@ std::shared_ptr<SfxItemSet> StylePoolImpl::insertItemSet( const SfxItemSet& rSet
pTemp = pIter->getNext();
} while( pTemp.get() );
DBG_ASSERT( mnCount == nCheck, "Wrong counting");
- delete pIter;
}
#endif
return pCurNode->getItemSet();
More information about the Libreoffice-commits
mailing list