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 /extensions/source | |
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 'extensions/source')
-rw-r--r-- | extensions/source/propctrlr/pushbuttonnavigation.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/extensions/source/propctrlr/pushbuttonnavigation.cxx b/extensions/source/propctrlr/pushbuttonnavigation.cxx index 3d1bf748c712..14cca3a5d4b1 100644 --- a/extensions/source/propctrlr/pushbuttonnavigation.cxx +++ b/extensions/source/propctrlr/pushbuttonnavigation.cxx @@ -22,6 +22,7 @@ #include "formstrings.hxx" #include <comphelper/extract.hxx> #include <comphelper/property.hxx> +#include <o3tl/string_view.hxx> #include <osl/diagnose.h> #include <tools/diagnose_ex.h> @@ -53,12 +54,12 @@ namespace pcr nullptr }; - sal_Int32 lcl_getNavigationURLIndex( const OUString& _rNavURL ) + sal_Int32 lcl_getNavigationURLIndex( std::u16string_view _rNavURL ) { const char** pLookup = pNavigationURLs; while ( *pLookup ) { - if ( _rNavURL.equalsAscii( *pLookup ) ) + if ( o3tl::equalsAscii( _rNavURL, *pLookup ) ) return pLookup - pNavigationURLs; ++pLookup; } |