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 /forms/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 'forms/source')
-rw-r--r-- | forms/source/helper/formnavigation.cxx | 5 | ||||
-rw-r--r-- | forms/source/inc/formnavigation.hxx | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/forms/source/helper/formnavigation.cxx b/forms/source/helper/formnavigation.cxx index 816c81f314b8..a99f29b24f50 100644 --- a/forms/source/helper/formnavigation.cxx +++ b/forms/source/helper/formnavigation.cxx @@ -26,6 +26,7 @@ #include <comphelper/propertyvalue.hxx> #include <tools/debug.hxx> +#include <o3tl/string_view.hxx> #include <osl/diagnose.h> @@ -427,12 +428,12 @@ namespace frm } - sal_Int16 OFormNavigationMapper::getFeatureId( const OUString& _rCompleteURL ) + sal_Int16 OFormNavigationMapper::getFeatureId( std::u16string_view _rCompleteURL ) { const FeatureURL* pFeatures = lcl_getFeatureTable(); while ( pFeatures->pAsciiURL ) { - if ( _rCompleteURL.equalsAscii( pFeatures->pAsciiURL ) ) + if ( o3tl::equalsAscii( _rCompleteURL, pFeatures->pAsciiURL ) ) return pFeatures->nFormFeature; ++pFeatures; } diff --git a/forms/source/inc/formnavigation.hxx b/forms/source/inc/formnavigation.hxx index 3ca32a996add..e18b99a1bc77 100644 --- a/forms/source/inc/formnavigation.hxx +++ b/forms/source/inc/formnavigation.hxx @@ -203,7 +203,7 @@ namespace frm the id of the feature URL, or -1 if the URl is not known (which is a valid usage) */ - static sal_Int16 getFeatureId( const OUString& _rCompleteURL ); + static sal_Int16 getFeatureId( std::u16string_view _rCompleteURL ); private: OFormNavigationMapper( const OFormNavigationMapper& ) = delete; |