diff options
Diffstat (limited to 'lotuswordpro/source/filter/lwpbulletstylemgr.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpbulletstylemgr.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwpbulletstylemgr.cxx b/lotuswordpro/source/filter/lwpbulletstylemgr.cxx index 4b97c6551e6e..40aef7d0618b 100644 --- a/lotuswordpro/source/filter/lwpbulletstylemgr.cxx +++ b/lotuswordpro/source/filter/lwpbulletstylemgr.cxx @@ -127,11 +127,10 @@ OUString LwpBulletStyleMgr::RegisterBulletStyle(LwpPara* pPara, LwpBulletOverrid std::shared_ptr<LwpBulletOverride> pBulletOver(pBullOver->clone()); sal_uInt16 nNameIndex = 0; - std::vector <OverridePair>::iterator iter; - for(iter = m_vIDsPairList.begin(); iter != m_vIDsPairList.end(); ++iter) + for (auto const& vIDsPair : m_vIDsPairList) { - if (iter->first->GetSilverBullet() == aBulletID && iter->second == aIndentID - && iter->first->IsRightAligned() == pBullOver->IsRightAligned()) + if (vIDsPair.first->GetSilverBullet() == aBulletID && vIDsPair.second == aIndentID + && vIDsPair.first->IsRightAligned() == pBullOver->IsRightAligned()) { return m_vStyleNameList[nNameIndex]; } |