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 /include | |
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 'include')
-rw-r--r-- | include/editeng/svxacorr.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/editeng/svxacorr.hxx b/include/editeng/svxacorr.hxx index 52f7bfdd5271..4e5d929405f0 100644 --- a/include/editeng/svxacorr.hxx +++ b/include/editeng/svxacorr.hxx @@ -31,6 +31,7 @@ #include <optional> #include <map> #include <memory> +#include <string_view> class CharClass; class SfxPoolItem; @@ -43,7 +44,7 @@ namespace tools { template <typename T> class SvRef; } struct CompareSvStringsISortDtor { - bool operator()( OUString const& lhs, OUString const& rhs ) const + bool operator()( OUString const& lhs, std::u16string_view rhs ) const { return lhs.compareToIgnoreAsciiCase( rhs ) < 0; } |