diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-08-10 19:07:30 +0300 |
---|---|---|
committer | Arkadiy Illarionov <qarkai@gmail.com> | 2019-08-17 14:08:33 +0200 |
commit | edcdfe5477559ca6c62897f0cad47d4d6149d77a (patch) | |
tree | bf97f0a716e760a3de4d95604483d26d943bd69f /sax/source/tools | |
parent | 5ad254ed246cf8d11b55e50ed0ccba5736d0cdbb (diff) |
Simplify Sequence iterations in postprocess..sax
Use range-based loops, STL and comphelper functions
Change-Id: If738d8f4e792c4686870183b0c0fdfbb61fd3351
Reviewed-on: https://gerrit.libreoffice.org/77245
Tested-by: Jenkins
Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
Diffstat (limited to 'sax/source/tools')
-rw-r--r-- | sax/source/tools/fastserializer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sax/source/tools/fastserializer.cxx b/sax/source/tools/fastserializer.cxx index 70a359b1c5ee..444924f0d521 100644 --- a/sax/source/tools/fastserializer.cxx +++ b/sax/source/tools/fastserializer.cxx @@ -773,9 +773,9 @@ namespace sax_fastparser { // Sort it all std::map< sal_Int32, Int8Sequence >::iterator iter; - for ( sal_Int32 i=0, len=maOrder.getLength(); i < len; i++ ) + for ( const auto nIndex : std::as_const(maOrder) ) { - iter = maData.find( maOrder[i] ); + iter = maData.find( nIndex ); if ( iter != maData.end() ) ForMerge::append( iter->second ); } |