diff options
author | himajin100000 <himajin100000@gmail.com> | 2018-09-16 18:54:16 +0900 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-17 15:18:33 +0200 |
commit | 88ec498f1d287dced1a9ca095a0776b14a023891 (patch) | |
tree | 0363166282a6abca14c6e157cbeb3073c4a4a9c3 /svl | |
parent | 76c7cabc42a239dbaf9e72122d36fb213e5a3555 (diff) |
adapt to commit 1476d95b6ed3afa35ccc
Change-Id: Ie6582b324d4c7feb8dbc7cac852b2c52358a052a
Reviewed-on: https://gerrit.libreoffice.org/60547
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/stylepool.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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(); |