From a4565b9361636c3f9b01755b2f467056d33e4e30 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 24 Nov 2020 15:18:37 +0100 Subject: loplugin:stringviewparam Change-Id: I6fc8b3b550c113b7b0f807bedbfc0e02b59cd719 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106506 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'connectivity/source') 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 + +#include #include #include @@ -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 ++ ) -- cgit