summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-18 08:46:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-18 10:22:44 +0100
commit6fa1161d3113d43f38acdf9207627659fbc137c8 (patch)
tree0b4e0091101fde23515ec7ab9bb7a05993c40482 /vcl
parent7938cae5178a4ce4093fd6494a058ab879ba303b (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 'vcl')
-rw-r--r--vcl/source/helper/driverblocklist.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/source/helper/driverblocklist.cxx b/vcl/source/helper/driverblocklist.cxx
index a24cdc98fbcb..b946d559c760 100644
--- a/vcl/source/helper/driverblocklist.cxx
+++ b/vcl/source/helper/driverblocklist.cxx
@@ -10,6 +10,7 @@
#include <driverblocklist.hxx>
#include <algorithm>
+#include <string_view>
#include <sal/log.hxx>
@@ -562,7 +563,10 @@ struct compareIgnoreAsciiCase
{
}
- bool operator()(const OUString& rCompare) { return maString.equalsIgnoreAsciiCase(rCompare); }
+ bool operator()(std::u16string_view rCompare)
+ {
+ return maString.equalsIgnoreAsciiCase(rCompare);
+ }
private:
OUString maString;