diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-12-09 22:42:32 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-12-09 23:31:17 +0100 |
commit | df810a82058a07dd8b1c2268955d64328e53cf97 (patch) | |
tree | 060003d876f4aad232475144e1df1ca65d7cc7c5 /include/connectivity | |
parent | ff8d82dc4cc0841f11ad6d51d3ed37450a6f6971 (diff) |
Fix loplugin:stringviewparam handling of comparison operators
Change-Id: I58456efb9588b544d998ac6a4c27d55457280742
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107510
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/connectivity')
-rw-r--r-- | include/connectivity/CommonTools.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/connectivity/CommonTools.hxx b/include/connectivity/CommonTools.hxx index 62e25b10d3f8..98f5a1c50f3b 100644 --- a/include/connectivity/CommonTools.hxx +++ b/include/connectivity/CommonTools.hxx @@ -23,6 +23,7 @@ #include <config_java.h> #include <map> +#include <string_view> #include <rtl/ref.hxx> #include <rtl/ustring.hxx> @@ -98,7 +99,7 @@ namespace connectivity OOO_DLLPUBLIC_DBTOOLS OSQLColumns::const_iterator find( const OSQLColumns::const_iterator& first, const OSQLColumns::const_iterator& last, - const OUString& _rVal, + std::u16string_view _rVal, const ::comphelper::UStringMixEqual& _rCase); // search from first to last the column with the realname _rVal @@ -106,7 +107,7 @@ namespace connectivity OOO_DLLPUBLIC_DBTOOLS OSQLColumns::const_iterator findRealName( const OSQLColumns::const_iterator& first, const OSQLColumns::const_iterator& last, - const OUString& _rVal, + std::u16string_view _rVal, const ::comphelper::UStringMixEqual& _rCase); // the first two find methods are much faster than the one below @@ -116,7 +117,7 @@ namespace connectivity OSQLColumns::const_iterator find( OSQLColumns::const_iterator first, const OSQLColumns::const_iterator& last, const OUString& _rProp, - const OUString& _rVal, + std::u16string_view _rVal, const ::comphelper::UStringMixEqual& _rCase); /// @throws css::lang::DisposedException |