summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-20 09:47:06 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-12-20 13:07:02 +0100
commitcf7306194f5c677fef75e3ff5098676ee302359e (patch)
treea52a0980de72c7f70e4f3ae55126579655440773 /idl
parent24b02a4f2507f40fe9d36c393c59e12c072428c3 (diff)
No longer need to worry about ambiguous operator== in loplugin:stringviewparam
...after 46c5de832868d2812448b2caace3eeaa9237b9f6 "make *String(string_view) constructors explicit" Change-Id: I6e884c762a2fc91f5dd6fbb197a596fd60f17cae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108043 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'idl')
-rw-r--r--idl/inc/database.hxx4
-rw-r--r--idl/source/prj/database.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/idl/inc/database.hxx b/idl/inc/database.hxx
index 44ef25eafbcf..79d289bee697 100644
--- a/idl/inc/database.hxx
+++ b/idl/inc/database.hxx
@@ -115,7 +115,7 @@ public:
void InsertId( const OString& rIdName, sal_uLong nVal );
bool ReadIdFile( std::string_view rFileName );
- SvMetaType * FindType( const OString& rName );
+ SvMetaType * FindType( std::string_view rName );
static SvMetaType * FindType( const SvMetaType *, SvRefMemberList<SvMetaType *>& );
SvMetaType * ReadKnownType( SvTokenStream & rInStm );
@@ -123,7 +123,7 @@ public:
SvMetaType * pType );
SvMetaAttribute * FindKnownAttr( const SvIdentifier& );
SvMetaClass * ReadKnownClass( SvTokenStream & rInStm );
- SvMetaClass * FindKnownClass( const OString& aName );
+ SvMetaClass * FindKnownClass( std::string_view aName );
void AddDepFile(OUString const& rFileName);
void WriteDepFile(SvFileStream & rStream, std::u16string_view rTarget);
};
diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx
index de8aad3d9b74..6075a2da5fbd 100644
--- a/idl/source/prj/database.cxx
+++ b/idl/source/prj/database.cxx
@@ -271,7 +271,7 @@ SvMetaType * SvIdlDataBase::FindType( const SvMetaType * pPType,
return nullptr;
}
-SvMetaType * SvIdlDataBase::FindType( const OString& rName )
+SvMetaType * SvIdlDataBase::FindType( std::string_view rName )
{
for (auto const& elem : aTypeList)
if( rName == elem->GetName() )
@@ -370,7 +370,7 @@ SvMetaClass * SvIdlDataBase::ReadKnownClass( SvTokenStream & rInStm )
return nullptr;
}
-SvMetaClass * SvIdlDataBase::FindKnownClass( const OString& aName )
+SvMetaClass * SvIdlDataBase::FindKnownClass( std::string_view aName )
{
for( sal_uLong n = 0; n < aClassList.size(); n++ )
{