diff options
Diffstat (limited to 'svx/source/sdr/properties/attributeproperties.cxx')
-rw-r--r-- | svx/source/sdr/properties/attributeproperties.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/sdr/properties/attributeproperties.cxx b/svx/source/sdr/properties/attributeproperties.cxx index a9955c21df14..701895228ab0 100644 --- a/svx/source/sdr/properties/attributeproperties.cxx +++ b/svx/source/sdr/properties/attributeproperties.cxx @@ -362,8 +362,8 @@ namespace sdr SfxStyleSheetBase* pLastSheet = nullptr; SfxStyleSheetBase* pForThisObject = nullptr; - std::vector<SfxStyleSheetBase*>::iterator iter; - for (iter = aStyleList.begin(); iter != aStyleList.end(); ++iter) + for (std::vector<SfxStyleSheetBase*>::const_iterator iter = aStyleList.begin(), aEnd = aStyleList.end() + ; iter != aEnd; ++iter) { pNewSheet = &pNewPool->Make((*iter)->GetName(), (*iter)->GetFamily(), (*iter)->GetMask()); pNewSheet->GetItemSet().Put((*iter)->GetItemSet(), false); |