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 /desktop | |
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 'desktop')
-rw-r--r-- | desktop/source/deployment/registry/dp_registry.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/source/deployment/registry/dp_registry.cxx b/desktop/source/deployment/registry/dp_registry.cxx index 50d0c0c4d68e..90248158056a 100644 --- a/desktop/source/deployment/registry/dp_registry.cxx +++ b/desktop/source/deployment/registry/dp_registry.cxx @@ -44,6 +44,7 @@ #include <com/sun/star/deployment/XPackageTypeInfo.hpp> #include <com/sun/star/deployment/XPackageRegistry.hpp> #include <set> +#include <string_view> #include <unordered_map> #include <unordered_set> @@ -69,7 +70,7 @@ class PackageRegistryImpl : private MutexHolder, public t_helper } }; struct ci_string_equals { - bool operator () ( OUString const & str1, OUString const & str2 ) const{ + bool operator () ( OUString const & str1, std::u16string_view str2 ) const{ return str1.equalsIgnoreAsciiCase( str2 ); } }; |