summaryrefslogtreecommitdiff
path: root/idl/source
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/source
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/source')
-rw-r--r--idl/source/prj/database.cxx4
1 files changed, 2 insertions, 2 deletions
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++ )
{