diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-19 12:06:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-19 15:04:33 +0200 |
commit | 6a0a0a4d78bb8850bf4a304b83784d3822895efe (patch) | |
tree | 2800dce4daa42965a010336456117733830e2694 /cui | |
parent | 832b23d9376019619929764606276aacde1e329a (diff) |
use more string_view in comphelper::string
Change-Id: I5d27824694e38de540e5f1fcd8704f8777f65140
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114261
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/inc/optdict.hxx | 2 | ||||
-rw-r--r-- | cui/source/options/optdict.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/inc/optdict.hxx b/cui/source/inc/optdict.hxx index 1449e9457ad9..e2dcf55953a8 100644 --- a/cui/source/inc/optdict.hxx +++ b/cui/source/inc/optdict.hxx @@ -99,7 +99,7 @@ private: css::linguistic2::XDictionary > const &xDic ); void RemoveDictEntry(int nEntry); - int GetLBInsertPos(const OUString &rDicWord); + int GetLBInsertPos(std::u16string_view rDicWord); public: SvxEditDictionaryDialog(weld::Window* pParent, std::u16string_view rName); diff --git a/cui/source/options/optdict.cxx b/cui/source/options/optdict.cxx index 55bfd4b72224..0a7a4ba74c5c 100644 --- a/cui/source/options/optdict.cxx +++ b/cui/source/options/optdict.cxx @@ -43,7 +43,7 @@ using namespace linguistic; // static function ------------------------------------------------------- -static OUString getNormDicEntry_Impl(const OUString &rText) +static OUString getNormDicEntry_Impl(std::u16string_view rText) { OUString aTmp(comphelper::string::stripEnd(rText, '.')); // non-standard hyphenation @@ -73,7 +73,7 @@ enum CDE_RESULT { CDE_EQUAL, CDE_SIMILAR, CDE_DIFFERENT }; } -static CDE_RESULT cmpDicEntry_Impl( const OUString &rText1, const OUString &rText2 ) +static CDE_RESULT cmpDicEntry_Impl( std::u16string_view rText1, std::u16string_view rText2 ) { CDE_RESULT eRes = CDE_DIFFERENT; @@ -355,7 +355,7 @@ void SvxEditDictionaryDialog::SetLanguage_Impl(LanguageType nLanguage) m_xLangLB->set_active_id(nLanguage); } -int SvxEditDictionaryDialog::GetLBInsertPos(const OUString &rDicWord) +int SvxEditDictionaryDialog::GetLBInsertPos(std::u16string_view rDicWord) { IntlWrapper aIntlWrapper(SvtSysLocale().GetUILanguageTag()); const CollatorWrapper* pCollator = aIntlWrapper.getCollator(); |