summaryrefslogtreecommitdiffstats
path: root/connectivity/source/drivers
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-11-25 08:14:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-30 12:32:14 +0100
commit8332d6d8200e8ca1f22dd98d9373efd5a431d09c (patch)
treedd45d452202998297b8562743ea6345462304d04 /connectivity/source/drivers
parentfastparser in shapeimport (diff)
downloadcore-8332d6d8200e8ca1f22dd98d9373efd5a431d09c.tar.gz
core-8332d6d8200e8ca1f22dd98d9373efd5a431d09c.zip
loplugin:stringviewparam include comparisons with string literals
Change-Id: I8ba1214500dddaf413c506a4b82f43d63cda804b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106559 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source/drivers')
-rw-r--r--connectivity/source/drivers/firebird/Util.cxx6
-rw-r--r--connectivity/source/drivers/mork/MConnection.hxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/firebird/Util.cxx b/connectivity/source/drivers/firebird/Util.cxx
index 64e3297235ea..82d69a123c97 100644
--- a/connectivity/source/drivers/firebird/Util.cxx
+++ b/connectivity/source/drivers/firebird/Util.cxx
@@ -94,17 +94,17 @@ static sal_Int32 lcl_getNumberType( short aType, NumberSubType aSubType )
}
}
}
-static sal_Int32 lcl_getCharColumnType( short aType, const OUString& sCharset )
+static sal_Int32 lcl_getCharColumnType( short aType, std::u16string_view sCharset )
{
switch(aType)
{
case SQL_TEXT:
- if( sCharset == "OCTETS")
+ if( sCharset == u"OCTETS")
return DataType::BINARY;
else
return DataType::CHAR;
case SQL_VARYING:
- if( sCharset == "OCTETS")
+ if( sCharset == u"OCTETS")
return DataType::VARBINARY;
else
return DataType::VARCHAR;
diff --git a/connectivity/source/drivers/mork/MConnection.hxx b/connectivity/source/drivers/mork/MConnection.hxx
index 99807fd838dc..67511b891d84 100644
--- a/connectivity/source/drivers/mork/MConnection.hxx
+++ b/connectivity/source/drivers/mork/MConnection.hxx
@@ -48,7 +48,7 @@ namespace connectivity::mork
virtual ~OConnection() override;
const rtl::Reference<MorkDriver>& getDriver() const {return m_xDriver;};
- MorkParser* getMorkParser(const OString& t) {return t == "CollectedAddressBook" ? m_pHistory.get() : m_pBook.get();};
+ MorkParser* getMorkParser(std::string_view t) {return t == "CollectedAddressBook" ? m_pHistory.get() : m_pBook.get();};
// OComponentHelper
virtual void SAL_CALL disposing() override;