diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2018-12-08 18:27:03 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-10 10:18:46 +0100 |
commit | 7c7ec84c26a3a92635811e4cf491b7e21796e1fa (patch) | |
tree | a53b2dfcb3c717a4c13c4ebe7d5c6b5165054272 /sd/source/ui/view/frmview.cxx | |
parent | 86abd3ec30bac181df228569b70aaf9086ed5f4a (diff) |
Simplify containers iterations in sd/source/ui/[s-v]*
Use range-based loop or replace with STL functions
Change-Id: I13c9982ad1e1aadbc6189068c5a5e29dfb171e97
Reviewed-on: https://gerrit.libreoffice.org/64811
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/view/frmview.cxx')
-rw-r--r-- | sd/source/ui/view/frmview.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/view/frmview.cxx b/sd/source/ui/view/frmview.cxx index aadd9820f7ec..e6f2e0edaf86 100644 --- a/sd/source/ui/view/frmview.cxx +++ b/sd/source/ui/view/frmview.cxx @@ -457,11 +457,11 @@ void FrameView::WriteUserDataSequence ( css::uno::Sequence < css::beans::Propert PropertyValue* pValue = &(rValues.getArray()[nOldLength]); - std::vector< std::pair< OUString, Any > >::iterator aIter( aUserData.begin() ); - for( ; aIter != aUserData.end(); ++aIter, ++pValue ) + for( const auto& rItem : aUserData ) { - pValue->Name = (*aIter).first; - pValue->Value = (*aIter).second; + pValue->Name = rItem.first; + pValue->Value = rItem.second; + ++pValue; } } #undef addValue |