summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/evoab2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-07-30 17:57:10 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-07-31 13:00:14 +0200
commitd4ef035e2d08ad91e6fccd58590abdff0d6260c7 (patch)
treea61cae7702941b7e7260acba634007323c7e49c1 /connectivity/source/drivers/evoab2
parentc64e9ee263cf9150f12b45906ae21a553af06d9c (diff)
Improved loplugin:stringconstant (now that GCC 7 supports it): connectivity
Change-Id: I80dab66757b1f541d448a642a5ecddc876f55c7b Reviewed-on: https://gerrit.libreoffice.org/76689 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'connectivity/source/drivers/evoab2')
-rw-r--r--connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx10
-rw-r--r--connectivity/source/drivers/evoab2/NDriver.cxx2
-rw-r--r--connectivity/source/drivers/evoab2/NResultSet.cxx2
3 files changed, 7 insertions, 7 deletions
diff --git a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx
index da3aa438a359..4ec577c5874c 100644
--- a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx
+++ b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx
@@ -196,9 +196,9 @@ namespace connectivity
switch( getFieldType( nCol ) )
{
case DataType::BIT:
- return OUString("BIT");
+ return "BIT";
case DataType::VARCHAR:
- return OUString("VARCHAR");
+ return "VARCHAR";
default:
break;
}
@@ -446,7 +446,7 @@ OUString SAL_CALL OEvoabDatabaseMetaData::getCatalogTerm( )
OUString OEvoabDatabaseMetaData::impl_getIdentifierQuoteString_throw( )
{
// normally this is "
- return OUString("\"");
+ return "\"";
}
OUString SAL_CALL OEvoabDatabaseMetaData::getExtraNameCharacters( )
@@ -802,12 +802,12 @@ OUString SAL_CALL OEvoabDatabaseMetaData::getDriverName( )
OUString SAL_CALL OEvoabDatabaseMetaData::getDriverVersion()
{
- return OUString( "1" );
+ return "1";
}
OUString SAL_CALL OEvoabDatabaseMetaData::getDatabaseProductVersion( )
{
- return OUString( "0" );
+ return "0";
}
OUString SAL_CALL OEvoabDatabaseMetaData::getDatabaseProductName( )
diff --git a/connectivity/source/drivers/evoab2/NDriver.cxx b/connectivity/source/drivers/evoab2/NDriver.cxx
index c0e37f9f7beb..9cbb265fce2a 100644
--- a/connectivity/source/drivers/evoab2/NDriver.cxx
+++ b/connectivity/source/drivers/evoab2/NDriver.cxx
@@ -80,7 +80,7 @@ void OEvoabDriver::disposing()
OUString OEvoabDriver::getImplementationName_Static( )
{
- return OUString(EVOAB_DRIVER_IMPL_NAME);
+ return EVOAB_DRIVER_IMPL_NAME;
// this name is referenced in the configuration and in the evoab.xml
// Please take care when changing it.
}
diff --git a/connectivity/source/drivers/evoab2/NResultSet.cxx b/connectivity/source/drivers/evoab2/NResultSet.cxx
index 38c51fa89375..0c438f650479 100644
--- a/connectivity/source/drivers/evoab2/NResultSet.cxx
+++ b/connectivity/source/drivers/evoab2/NResultSet.cxx
@@ -66,7 +66,7 @@ namespace ErrorCondition = ::com::sun::star::sdb::ErrorCondition;
OUString SAL_CALL OEvoabResultSet::getImplementationName( )
{
- return OUString("com.sun.star.sdbcx.evoab.ResultSet");
+ return "com.sun.star.sdbcx.evoab.ResultSet";
}
Sequence< OUString > SAL_CALL OEvoabResultSet::getSupportedServiceNames( )