summaryrefslogtreecommitdiff
path: root/svx/source/sdr/properties/attributeproperties.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2016-04-17 22:54:57 +0200
committerJulien Nabet <serval2412@yahoo.fr>2016-04-18 05:08:47 +0000
commit101e5bbc8aaa77d5db36e0969a512b5a283f1672 (patch)
tree323ec88fb975a6c80eb171a36722e38aaa565ba6 /svx/source/sdr/properties/attributeproperties.cxx
parent92ddd584f1b8777932d86e26120977b9b66af8a4 (diff)
Use const_iterator when possible (svx/gallery2,items,sdr,stbctrls)
Change-Id: Idd8992fcb76c25120202b24a23820d85ca09e434 Reviewed-on: https://gerrit.libreoffice.org/24174 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'svx/source/sdr/properties/attributeproperties.cxx')
-rw-r--r--svx/source/sdr/properties/attributeproperties.cxx4
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);