diff options
Diffstat (limited to 'svtools/source/dialogs/insdlg.cxx')
-rw-r--r-- | svtools/source/dialogs/insdlg.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svtools/source/dialogs/insdlg.cxx b/svtools/source/dialogs/insdlg.cxx index 6033a74f03db..b9a6f535a1a3 100644 --- a/svtools/source/dialogs/insdlg.cxx +++ b/svtools/source/dialogs/insdlg.cxx @@ -57,20 +57,20 @@ struct OleObjectDescriptor const SvObjectServer * SvObjectServerList::Get( const OUString & rHumanName ) const { - for( size_t i = 0; i < aObjectServerList.size(); i++ ) + for(const auto & i : aObjectServerList) { - if( rHumanName == aObjectServerList[ i ].GetHumanName() ) - return &aObjectServerList[ i ]; + if( rHumanName == i.GetHumanName() ) + return &i; } return nullptr; } const SvObjectServer * SvObjectServerList::Get( const SvGlobalName & rName ) const { - for( size_t i = 0; i < aObjectServerList.size(); i++ ) + for(const auto & i : aObjectServerList) { - if( rName == aObjectServerList[ i ].GetClassName() ) - return &aObjectServerList[ i ]; + if( rName == i.GetClassName() ) + return &i; } return nullptr; } |