From 7c7ec84c26a3a92635811e4cf491b7e21796e1fa Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Sat, 8 Dec 2018 18:27:03 +0300 Subject: 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 --- sd/source/ui/view/frmview.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sd/source/ui/view/frmview.cxx') 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 -- cgit