summaryrefslogtreecommitdiff
path: root/connectivity/source/commontools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-09 22:42:32 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-12-09 23:31:17 +0100
commitdf810a82058a07dd8b1c2268955d64328e53cf97 (patch)
tree060003d876f4aad232475144e1df1ca65d7cc7c5 /connectivity/source/commontools
parentff8d82dc4cc0841f11ad6d51d3ed37450a6f6971 (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 'connectivity/source/commontools')
-rw-r--r--connectivity/source/commontools/dbtools.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/commontools/dbtools.cxx b/connectivity/source/commontools/dbtools.cxx
index d8ce3f42136e..f96e66e62c7e 100644
--- a/connectivity/source/commontools/dbtools.cxx
+++ b/connectivity/source/commontools/dbtools.cxx
@@ -1964,7 +1964,7 @@ void checkDisposed(bool _bThrow)
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)
{
OUString sName = OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME);
@@ -1973,7 +1973,7 @@ OSQLColumns::const_iterator find(const OSQLColumns::const_iterator& first,
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)
{
OUString sRealName = OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_REALNAME);
@@ -1983,7 +1983,7 @@ OSQLColumns::const_iterator findRealName(const OSQLColumns::const_iterator& firs
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)
{
while (first != last && !_rCase(getString((*first)->getPropertyValue(_rProp)),_rVal))