diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-16 11:10:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-16 11:10:20 +0200 |
commit | 2faa219ac802d1b0a1cc58fadeb64fb560c969a0 (patch) | |
tree | 31a2e244c9c8ba34bb7960ac694c76fed7427b13 /connectivity | |
parent | a8a2f6474245fa957105a0c50af2115ff5b6db37 (diff) |
loplugin:stringstatic
Change-Id: Ia5d7ca7864dbef1489294783438b9d718159614b
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx index d1118e2a0cd7..cf6c216cb04b 100644 --- a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx +++ b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx @@ -997,22 +997,22 @@ Reference< XResultSet > SAL_CALL OEvoabDatabaseMetaData::getTableTypes( ) throw /* Don't need to change as evoab driver supports only table */ // there exists no possibility to get table types so we have to check - static const OUString sTableTypes[] = + static const OUStringLiteral sTableTypes[] = { - OUString("TABLE"), + OUStringLiteral("TABLE"), // Currently we only support a 'TABLE' nothing more complex }; ::connectivity::ODatabaseMetaDataResultSet* pResult = new ::connectivity::ODatabaseMetaDataResultSet(::connectivity::ODatabaseMetaDataResultSet::eTableTypes); Reference< XResultSet > xRef = pResult; // here we fill the rows which should be visible when ask for data from the resultset returned here - sal_Int32 nSize = sizeof(sTableTypes) / sizeof(OUString); + sal_Int32 nSize = SAL_N_ELEMENTS(sTableTypes); ODatabaseMetaDataResultSet::ORows aRows; for(sal_Int32 i=0;i < nSize;++i) { ODatabaseMetaDataResultSet::ORow aRow; aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue()); - aRow.push_back(new ORowSetValueDecorator(sTableTypes[i])); + aRow.push_back(new ORowSetValueDecorator(OUString(sTableTypes[i]))); // bound row aRows.push_back(aRow); |