diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-03-29 07:15:26 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-03-29 07:15:26 +0100 |
commit | 290276f622d7f9a4d5dc5b2bedcd2e8c0b0e1303 (patch) | |
tree | 5b32ed6cde70ba3fd8865f27f34e4f306512a0cc /svx | |
parent | 7ec010c8c2311bba4b97c023ba04feabc38ae7d1 (diff) |
Use const_iterator and use them in loop only
Change-Id: I64a206957e979cfd4d43805bfb089f5af96239e2
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sdr/properties/defaultproperties.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/svx/source/sdr/properties/defaultproperties.cxx b/svx/source/sdr/properties/defaultproperties.cxx index 482c9fb4103d..cb11d131333c 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; |