diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2018-03-18 10:34:42 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-03-18 11:33:16 +0100 |
commit | 1e3a5bb9e92aea074d7350ccde0dae5c123e885d (patch) | |
tree | 1244921df6b85b0e7ba81e74043a72251be5070f /idl | |
parent | 2980e65d9728cfee73c1c49d64e19af50f756521 (diff) |
Use for-range loops in hwpfilter, i18n*, idl* and io
Change-Id: I980464162b73ed9ee0a09acbca1b9050af8d1027
Reviewed-on: https://gerrit.libreoffice.org/51492
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'idl')
-rw-r--r-- | idl/source/prj/database.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx index 62e209fb3f5f..a7c3087a606b 100644 --- a/idl/source/prj/database.cxx +++ b/idl/source/prj/database.cxx @@ -264,17 +264,17 @@ bool SvIdlDataBase::ReadIdFile( const OString& rOFileName ) SvMetaType * SvIdlDataBase::FindType( const SvMetaType * pPType, SvRefMemberList<SvMetaType *>& rList ) { - for( SvRefMemberList<SvMetaType *>::const_iterator it = rList.begin(); it != rList.end(); ++it ) - if( *it == pPType ) - return *it; + for (auto const& elem : rList) + if( elem == pPType ) + return elem; return nullptr; } SvMetaType * SvIdlDataBase::FindType( const OString& rName ) { - for( SvRefMemberList<SvMetaType *>::const_iterator it = aTypeList.begin(); it != aTypeList.end(); ++it ) - if( rName == (*it)->GetName() ) - return *it; + for (auto const& elem : aTypeList) + if( rName == elem->GetName() ) + return elem; return nullptr; } |