[Libreoffice-commits] core.git: svl/source sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Jan 14 10:47:56 UTC 2019
svl/source/items/itempool.cxx | 4 ++--
sw/source/core/doc/DocumentStylePoolManager.cxx | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 424a1a8a06eb03d4c84fd63ca1b73abad0324f89
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Jan 14 09:22:17 2019 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Jan 14 11:47:35 2019 +0100
ofz#12507 micro opt
Change-Id: I7cdb2e371cb3e209b71659174594bf5bb687f379
Reviewed-on: https://gerrit.libreoffice.org/66284
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx
index f0945aaf3b2e..4ac7eb7cd60d 100644
--- a/svl/source/items/itempool.cxx
+++ b/svl/source/items/itempool.cxx
@@ -756,8 +756,8 @@ void SfxItemPool::Remove( const SfxPoolItem& rItem )
SfxPoolItemArray_Impl* pItemArr = pImpl->maPoolItems[nIndex].get();
assert(pItemArr && "removing Item not in Pool");
- SfxPoolItemArray_Impl::PoolItemPtrToIndexMap::const_iterator it;
- it = pItemArr->maPtrToIndex.find(const_cast<SfxPoolItem *>(&rItem));
+ SfxPoolItemArray_Impl::PoolItemPtrToIndexMap::const_iterator it
+ = pItemArr->maPtrToIndex.find(const_cast<SfxPoolItem *>(&rItem));
if (it != pItemArr->maPtrToIndex.end())
{
sal_uInt32 nIdx = it->second;
diff --git a/sw/source/core/doc/DocumentStylePoolManager.cxx b/sw/source/core/doc/DocumentStylePoolManager.cxx
index 7edd055f1e95..19c09209e1bf 100644
--- a/sw/source/core/doc/DocumentStylePoolManager.cxx
+++ b/sw/source/core/doc/DocumentStylePoolManager.cxx
@@ -583,7 +583,7 @@ SwTextFormatColl* DocumentStylePoolManager::GetTextCollFromPool( sal_uInt16 nId,
SwTextFormatColl* pNewColl;
sal_uInt16 nOutLvlBits = 0;
- for( size_t n = 0; n < m_rDoc.GetTextFormatColls()->size(); ++n )
+ for (size_t n = 0, nSize = m_rDoc.GetTextFormatColls()->size(); n < nSize; ++n)
{
if( nId == ( pNewColl = (*m_rDoc.GetTextFormatColls())[ n ] )->GetPoolFormatId() )
{
More information about the Libreoffice-commits
mailing list