From ddef1e2c017b7d8e421dedc1a0ce722ff4208985 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 1 May 2022 20:34:18 +0200 Subject: add o3tl::equalsAscii Change-Id: I042b8dcadbf7581de325c161763fe35aecde5ca2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133694 Tested-by: Jenkins Reviewed-by: Noel Grandin --- forms/source/helper/formnavigation.cxx | 5 +++-- forms/source/inc/formnavigation.hxx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'forms') 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 #include +#include #include @@ -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; -- cgit