[Libreoffice-commits] core.git: connectivity/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Tue Nov 24 18:07:10 UTC 2020


 connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit a4565b9361636c3f9b01755b2f467056d33e4e30
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Nov 24 15:18:37 2020 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Nov 24 19:06:27 2020 +0100

    loplugin:stringviewparam
    
    Change-Id: I6fc8b3b550c113b7b0f807bedbfc0e02b59cd719
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106506
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

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 ++ )


More information about the Libreoffice-commits mailing list