summaryrefslogtreecommitdiff
path: root/idl/source/prj/database.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-06 13:10:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-06 20:23:09 +0200
commit8c77b5670ec0ee6d550d5adba51b8ae76fe2c162 (patch)
tree9a905004341f2fae7bee3b45bd8826d95f801353 /idl/source/prj/database.cxx
parent1dea7fb6be5f1ba64f680e3ad885afa1c99030bf (diff)
use OString::operator== in preference to ::equals
Change-Id: Ib291521963a791a9c6175964571e9d9895072acf Reviewed-on: https://gerrit.libreoffice.org/39646 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idl/source/prj/database.cxx')
-rw-r--r--idl/source/prj/database.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx
index 1e0e74dfd8bd..5ecace5416ea 100644
--- a/idl/source/prj/database.cxx
+++ b/idl/source/prj/database.cxx
@@ -260,7 +260,7 @@ SvMetaType * SvIdlDataBase::FindType( const SvMetaType * pPType,
SvMetaType * SvIdlDataBase::FindType( const OString& rName )
{
for( SvRefMemberList<SvMetaType *>::const_iterator it = aTypeList.begin(); it != aTypeList.end(); ++it )
- if( rName.equals((*it)->GetName()) )
+ if( rName == (*it)->GetName() )
return *it;
return nullptr;
}
@@ -275,7 +275,7 @@ SvMetaType * SvIdlDataBase::ReadKnownType( SvTokenStream & rInStm )
OString aName = rTok.GetString();
for( const auto& aType : GetTypeList() )
{
- if( aType->GetName().equals(aName) )
+ if( aType->GetName() == aName )
{
return aType;
}
@@ -309,7 +309,7 @@ SvMetaAttribute * SvIdlDataBase::ReadKnownAttr
for( sal_uLong i = 0; i < aSlotList.size(); i++ )
{
SvMetaSlot * pSlot = aSlotList[i];
- if( pSlot->GetSlotId().getString().equals(rTok.GetString()) )
+ if( pSlot->GetSlotId().getString() == rTok.GetString() )
return pSlot;
}
}