diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-11-18 08:46:33 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-11-18 10:22:44 +0100 |
commit | 6fa1161d3113d43f38acdf9207627659fbc137c8 (patch) | |
tree | 0b4e0091101fde23515ec7ab9bb7a05993c40482 /i18nlangtag | |
parent | 7938cae5178a4ce4093fd6494a058ab879ba303b (diff) |
loplugin:stringviewparam: No good reason to exclude operator functions
(at least not in general)
Change-Id: I71337b53dc9735e90a37ee532d0a8a08797b518c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106043
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'i18nlangtag')
-rw-r--r-- | i18nlangtag/source/languagetag/languagetag.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx index ab9e33019428..b9b6cc20a2d8 100644 --- a/i18nlangtag/source/languagetag/languagetag.cxx +++ b/i18nlangtag/source/languagetag/languagetag.cxx @@ -23,6 +23,7 @@ #include <tools/long.hxx> #include <algorithm> #include <map> +#include <string_view> #include <unordered_set> //#define erDEBUG @@ -88,7 +89,7 @@ static const KnownTagSet & getKnowns() namespace { struct compareIgnoreAsciiCaseLess { - bool operator()( const OUString& r1, const OUString& r2 ) const + bool operator()( const OUString& r1, std::u16string_view r2 ) const { return r1.compareToIgnoreAsciiCase( r2) < 0; } |