summaryrefslogtreecommitdiff
path: root/framework/source/uifactory/addonstoolbarfactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/uifactory/addonstoolbarfactory.cxx')
-rw-r--r--framework/source/uifactory/addonstoolbarfactory.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/framework/source/uifactory/addonstoolbarfactory.cxx b/framework/source/uifactory/addonstoolbarfactory.cxx
index 655cf1843491..b9a1c95c90eb 100644
--- a/framework/source/uifactory/addonstoolbarfactory.cxx
+++ b/framework/source/uifactory/addonstoolbarfactory.cxx
@@ -83,15 +83,14 @@ AddonsToolBarFactory::AddonsToolBarFactory(
{
}
-bool IsCorrectContext( std::u16string_view rModuleIdentifier, const OUString& aContextList )
+bool IsCorrectContext( std::u16string_view rModuleIdentifier, std::u16string_view aContextList )
{
- if ( aContextList.isEmpty() )
+ if ( aContextList.empty() )
return true;
if ( !rModuleIdentifier.empty() )
{
- sal_Int32 nIndex = aContextList.indexOf( rModuleIdentifier );
- return ( nIndex >= 0 );
+ return aContextList.find( rModuleIdentifier ) != std::u16string_view::npos;
}
return false;