diff options
Diffstat (limited to 'scripting/source/provider/BrowseNodeFactoryImpl.cxx')
-rw-r--r-- | scripting/source/provider/BrowseNodeFactoryImpl.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripting/source/provider/BrowseNodeFactoryImpl.cxx b/scripting/source/provider/BrowseNodeFactoryImpl.cxx index 122e3e247279..b27ac817329f 100644 --- a/scripting/source/provider/BrowseNodeFactoryImpl.cxx +++ b/scripting/source/provider/BrowseNodeFactoryImpl.cxx @@ -195,11 +195,10 @@ public: Sequence< Reference< browse::XBrowseNode > > children( m_hBNA->size() ); sal_Int32 index = 0; - auto it = m_vStr.begin(); - - for ( ; it != m_vStr.end(); ++it, index++ ) + for ( auto& str : m_vStr ) { - children[ index ].set( m_hBNA->find( *it )->second ); + children[ index ].set( m_hBNA->find( str )->second ); + ++index; } return children; |