diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-11-24 15:18:37 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-11-24 19:06:27 +0100 |
commit | a4565b9361636c3f9b01755b2f467056d33e4e30 (patch) | |
tree | eafa5556af1704a43e580533abe0b4736d6ebf7e /connectivity | |
parent | b5525444db57e9e9c289f08d7a03f77b15acd8b4 (diff) |
loplugin:stringviewparam
Change-Id: I6fc8b3b550c113b7b0f807bedbfc0e02b59cd719
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106506
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx b/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx index 12acb6f321d6..a16d22d0cf2f 100644 --- a/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx +++ b/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx @@ -35,6 +35,8 @@ ************************************************************************/ #include <sal/log.hxx> + +#include <string_view> #include <vector> #include <com/sun/star/lang/WrappedTargetRuntimeException.hpp> @@ -84,7 +86,7 @@ IndexColumns::IndexColumns( IndexColumns::~IndexColumns() {} -static sal_Int32 findInSequence( const Sequence< OUString > & seq , const OUString &str) +static sal_Int32 findInSequence( const Sequence< OUString > & seq , std::u16string_view str) { int index; for( index = 0 ; index < seq.getLength() ; index ++ ) |