[Libreoffice-commits] core.git: connectivity/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Wed Nov 25 07:19:56 UTC 2020
connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx | 2 +-
connectivity/source/drivers/evoab2/NDatabaseMetaData.hxx | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)
New commits:
commit 60d0cf170b637c01f76e354e8bf5a40cade11b69
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Nov 24 15:34:44 2020 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Nov 25 08:19:16 2020 +0100
loplugin:stringviewparam
Change-Id: Ieddc3cc1913e57f51d270cead97b1eadaa81fc6b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106507
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx
index 97cdd9775c7f..fc6a12a5979b 100644
--- a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx
+++ b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx
@@ -169,7 +169,7 @@ namespace connectivity::evoab
return nType == G_TYPE_STRING ? DataType::VARCHAR : DataType::BIT;
}
- guint findEvoabField(const OUString& aColName)
+ guint findEvoabField(std::u16string_view aColName)
{
guint nRet = guint(-1);
bool bFound = false;
diff --git a/connectivity/source/drivers/evoab2/NDatabaseMetaData.hxx b/connectivity/source/drivers/evoab2/NDatabaseMetaData.hxx
index 11270aca5259..cbfed176fabc 100644
--- a/connectivity/source/drivers/evoab2/NDatabaseMetaData.hxx
+++ b/connectivity/source/drivers/evoab2/NDatabaseMetaData.hxx
@@ -20,6 +20,10 @@
#ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_EVOAB2_NDATABASEMETADATA_HXX
#define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_EVOAB2_NDATABASEMETADATA_HXX
+#include <sal/config.h>
+
+#include <string_view>
+
#include "NConnection.hxx"
#include <TDatabaseMetaDataBase.hxx>
#include <FDatabaseMetaDataResultSet.hxx>
@@ -54,7 +58,7 @@ namespace connectivity::evoab
sal_Int32 getFieldType(guint nCol) ;
OUString getFieldTypeName(guint nCol) ;
OUString getFieldName(guint nCol) ;
- guint findEvoabField(const OUString& aColName);
+ guint findEvoabField(std::u16string_view aColName);
void free_column_resources();
More information about the Libreoffice-commits
mailing list