diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-01 20:34:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-03 09:12:32 +0200 |
commit | ddef1e2c017b7d8e421dedc1a0ce722ff4208985 (patch) | |
tree | 54e52c86e4e33bcb61eee44706117b1616e99624 /svx/source/tbxctrls | |
parent | 0a6d946694e4fcb39228c5e1fec58fcfd8a45989 (diff) |
add o3tl::equalsAscii
Change-Id: I042b8dcadbf7581de325c161763fe35aecde5ca2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133694
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/tbxctrls')
-rw-r--r-- | svx/source/tbxctrls/grafctrl.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/tbxctrls/grafctrl.cxx b/svx/source/tbxctrls/grafctrl.cxx index 78dab1e0df2b..bf224a693be5 100644 --- a/svx/source/tbxctrls/grafctrl.cxx +++ b/svx/source/tbxctrls/grafctrl.cxx @@ -20,6 +20,7 @@ #include <sal/config.h> #include <comphelper/propertyvalue.hxx> +#include <o3tl/string_view.hxx> #include <vcl/toolbox.hxx> #include <vcl/idle.hxx> #include <svl/intitem.hxx> @@ -161,7 +162,7 @@ struct CommandToRID } -static OUString ImplGetRID( const OUString& aCommand ) +static OUString ImplGetRID( std::u16string_view aCommand ) { static constexpr OUStringLiteral EMPTY = u""; static const CommandToRID aImplCommandToResMap[] = @@ -181,7 +182,7 @@ static OUString ImplGetRID( const OUString& aCommand ) sal_Int32 i( 0 ); while ( aImplCommandToResMap[ i ].pCommand ) { - if ( aCommand.equalsAscii( aImplCommandToResMap[ i ].pCommand )) + if ( o3tl::equalsAscii( aCommand, aImplCommandToResMap[ i ].pCommand )) { sRID = aImplCommandToResMap[i].sResId; break; |