[Libreoffice-commits] core.git: svx/source
Julien Nabet
serval2412 at yahoo.fr
Thu Mar 28 23:17:40 PDT 2013
svx/source/sdr/properties/defaultproperties.cxx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit 290276f622d7f9a4d5dc5b2bedcd2e8c0b0e1303
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Fri Mar 29 07:15:26 2013 +0100
Use const_iterator and use them in loop only
Change-Id: I64a206957e979cfd4d43805bfb089f5af96239e2
diff --git a/svx/source/sdr/properties/defaultproperties.cxx b/svx/source/sdr/properties/defaultproperties.cxx
index 482c9fb..cb11d13 100644
--- a/svx/source/sdr/properties/defaultproperties.cxx
+++ b/svx/source/sdr/properties/defaultproperties.cxx
@@ -168,10 +168,7 @@ namespace sdr
if(bDidChange)
{
- std::vector< sal_uInt16 >::iterator aIter = aPostItemChangeList.begin();
- const std::vector< sal_uInt16 >::iterator aEnd = aPostItemChangeList.end();
-
- while(aIter != aEnd)
+ for (std::vector< sal_uInt16 >::const_iterator aIter(aPostItemChangeList.begin()), aEnd(aPostItemChangeList.end()); aIter != aEnd; ++aIter)
{
PostItemChange(*aIter);
++aIter;
More information about the Libreoffice-commits
mailing list