diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-29 11:26:39 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-29 11:26:39 +0200 |
commit | f9509e7da32e3aa8e99c668f9f3f6d1b2c57fcb9 (patch) | |
tree | 9ebe22a2ebe38bb4c5d915f8c69d81fcdba151a7 /connectivity/source/drivers/evoab2 | |
parent | 4cc2fc6cef4f76c1d203666cb5e47b5d70ec7be5 (diff) |
loplugin:oncevar
Change-Id: I5ee54b458b85581cf49ab39a7b1dc0cae6abed00
Diffstat (limited to 'connectivity/source/drivers/evoab2')
-rw-r--r-- | connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx | 10 | ||||
-rw-r--r-- | connectivity/source/drivers/evoab2/NTables.cxx | 4 |
2 files changed, 5 insertions, 9 deletions
diff --git a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx index 01493a95588b..0511b17e9a99 100644 --- a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx +++ b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx @@ -27,6 +27,7 @@ #include <com/sun/star/sdbc/ColumnValue.hpp> #include <com/sun/star/sdbc/ColumnSearch.hpp> +#include <cstddef> #include <vector> #include <string.h> #include "EApi.h" @@ -160,10 +161,9 @@ namespace connectivity { initFields(); - sal_Int32 nType = G_TYPE_STRING; if ( nCol < nFields ) return (pFields[nCol]->pField)->value_type; - return nType; + return G_TYPE_STRING; } sal_Int32 @@ -448,8 +448,7 @@ OUString SAL_CALL OEvoabDatabaseMetaData::getCatalogTerm( ) OUString OEvoabDatabaseMetaData::impl_getIdentifierQuoteString_throw( ) { // normally this is " - OUString aVal("\""); - return aVal; + return OUString("\""); } OUString SAL_CALL OEvoabDatabaseMetaData::getExtraNameCharacters( ) @@ -1004,9 +1003,8 @@ Reference< XResultSet > SAL_CALL OEvoabDatabaseMetaData::getTableTypes( ) 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 = SAL_N_ELEMENTS(sTableTypes); ODatabaseMetaDataResultSet::ORows aRows; - for(sal_Int32 i=0;i < nSize;++i) + for(std::size_t i=0;i < SAL_N_ELEMENTS(sTableTypes);++i) { ODatabaseMetaDataResultSet::ORow aRow; aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue()); diff --git a/connectivity/source/drivers/evoab2/NTables.cxx b/connectivity/source/drivers/evoab2/NTables.cxx index 587cdc632b05..652ac07030e1 100644 --- a/connectivity/source/drivers/evoab2/NTables.cxx +++ b/connectivity/source/drivers/evoab2/NTables.cxx @@ -47,11 +47,9 @@ using namespace dbtools; ObjectType OEvoabTables::createObject(const OUString& aName) { - OUString aSchema( "%" ); - Sequence< OUString > aTypes { "TABLE" }; - Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),aSchema,aName,aTypes); + Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),"%",aName,aTypes); ObjectType xRet = nullptr; if(xResult.is()) |