diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-08-07 08:06:45 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-08-07 08:06:45 +0200 |
commit | e0d342497334e9518dd4b7b1d33bf855fa0fb7ad (patch) | |
tree | 117486f4d17190a9ed3412bb7e03eec03a2e3678 /connectivity | |
parent | 10c80e560e5580b91fe7be5c8d171146335eb8a5 (diff) |
loplugin:oncevar
Change-Id: I9bd2e0a3ae1d0dc59c235e47be6ffa4357164a20
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx b/connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx index e6c05084f794..10963ef1e3f9 100644 --- a/connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx +++ b/connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx @@ -56,12 +56,11 @@ MacabDatabaseMetaData::~MacabDatabaseMetaData() OUString SAL_CALL MacabDatabaseMetaData::getCatalogSeparator( ) { - OUString aVal; if (m_bUseCatalog) { // do some special here for you database } - return aVal; + return OUString(); } sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxBinaryLiteralLength( ) @@ -183,11 +182,10 @@ sal_Bool SAL_CALL MacabDatabaseMetaData::supportsNonNullableColumns( ) OUString SAL_CALL MacabDatabaseMetaData::getCatalogTerm( ) { - OUString aVal; if (m_bUseCatalog) { } - return aVal; + return OUString(); } OUString SAL_CALL MacabDatabaseMetaData::getIdentifierQuoteString( ) @@ -198,8 +196,7 @@ OUString SAL_CALL MacabDatabaseMetaData::getIdentifierQuoteString( ) OUString SAL_CALL MacabDatabaseMetaData::getExtraNameCharacters( ) { - OUString aVal; - return aVal; + return OUString(); } sal_Bool SAL_CALL MacabDatabaseMetaData::supportsDifferentTableCorrelationNames( ) @@ -540,8 +537,7 @@ OUString SAL_CALL MacabDatabaseMetaData::getURL( ) OUString SAL_CALL MacabDatabaseMetaData::getUserName( ) { - OUString aValue; - return aValue; + return OUString(); } OUString SAL_CALL MacabDatabaseMetaData::getDriverName( ) @@ -556,26 +552,22 @@ OUString SAL_CALL MacabDatabaseMetaData::getDriverVersion() OUString SAL_CALL MacabDatabaseMetaData::getDatabaseProductVersion( ) { - OUString aValue; - return aValue; + return OUString(); } OUString SAL_CALL MacabDatabaseMetaData::getDatabaseProductName( ) { - OUString aValue; - return aValue; + return OUString(); } OUString SAL_CALL MacabDatabaseMetaData::getProcedureTerm( ) { - OUString aValue; - return aValue; + return OUString(); } OUString SAL_CALL MacabDatabaseMetaData::getSchemaTerm( ) { - OUString aValue; - return aValue; + return OUString(); } sal_Int32 SAL_CALL MacabDatabaseMetaData::getDriverMajorVersion( ) @@ -595,14 +587,12 @@ sal_Int32 SAL_CALL MacabDatabaseMetaData::getDriverMinorVersion( ) OUString SAL_CALL MacabDatabaseMetaData::getSQLKeywords( ) { - OUString aValue; - return aValue; + return OUString(); } OUString SAL_CALL MacabDatabaseMetaData::getSearchStringEscape( ) { - OUString aValue; - return aValue; + return OUString(); } OUString SAL_CALL MacabDatabaseMetaData::getStringFunctions( ) |