summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/file/filprp.cxx
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2018-10-20 22:15:25 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-22 09:47:59 +0200
commite06afb0c9546ddcde1cedd75f59001396ac6fdf2 (patch)
treec5e60976b74bd102bff3e58381e53bb949c6ea22 /ucb/source/ucp/file/filprp.cxx
parent8959bb300b05be9fafbf30e553b35fb517bdf786 (diff)
Simplify containers iterations in ucb, ucbhelper
Use range-based loop or replace with STL functions. Change-Id: I3cdb0f89523008199af1550de164a52b75c52ba5 Reviewed-on: https://gerrit.libreoffice.org/62088 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/ucp/file/filprp.cxx')
-rw-r--r--ucb/source/ucp/file/filprp.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/ucb/source/ucp/file/filprp.cxx b/ucb/source/ucp/file/filprp.cxx
index 6d0eb8d0d9d3..e0c6f5587971 100644
--- a/ucb/source/ucp/file/filprp.cxx
+++ b/ucb/source/ucp/file/filprp.cxx
@@ -45,18 +45,16 @@ XPropertySetInfo_impl::XPropertySetInfo_impl( TaskManager* pMyShell,const OUStri
TaskManager::ContentMap::iterator it = m_pMyShell->m_aContent.find( aUnqPath );
TaskManager::PropertySet& properties = *(it->second.properties);
- TaskManager::PropertySet::iterator it1 = properties.begin();
m_seq.realloc( properties.size() );
sal_Int32 count = 0;
- while( it1 != properties.end() )
+ for( const auto& rProp : properties )
{
- m_seq[ count++ ] = beans::Property( it1->getPropertyName(),
- it1->getHandle(),
- it1->getType(),
- it1->getAttributes() );
- ++it1;
+ m_seq[ count++ ] = beans::Property( rProp.getPropertyName(),
+ rProp.getHandle(),
+ rProp.getType(),
+ rProp.getAttributes() );
}
}