summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
Diffstat (limited to 'idl')
-rw-r--r--idl/source/prj/database.cxx12
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;
}