diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2013-07-24 21:11:30 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2013-07-24 21:12:28 +0900 |
commit | a140d3b7cbad0a5cd361d6f310e5b16de308b21e (patch) | |
tree | 2ad8eacd6bb9047112be50bf07d0311ae4f22d27 /connectivity/source | |
parent | 319a9ce794126622cbd5061af40a6abeeed4ddb4 (diff) |
Mark as const
Change-Id: Ia3996b997ebbd10ca02ec5a24d1969822bc39273
Diffstat (limited to 'connectivity/source')
5 files changed, 6 insertions, 6 deletions
diff --git a/connectivity/source/commontools/TDatabaseMetaDataBase.cxx b/connectivity/source/commontools/TDatabaseMetaDataBase.cxx index afcebaa37333..db0b796b621d 100644 --- a/connectivity/source/commontools/TDatabaseMetaDataBase.cxx +++ b/connectivity/source/commontools/TDatabaseMetaDataBase.cxx @@ -94,7 +94,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getTypeInfo( ) throw(SQ if ( xRow.is() ) { - static sal_Int32 pTypes[] = { + static const sal_Int32 pTypes[] = { DataType::VARCHAR ,DataType::INTEGER ,DataType::INTEGER @@ -137,7 +137,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getTypeInfo( ) throw(SQ { ::connectivity::ODatabaseMetaDataResultSet::ORow aRow; aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue()); - sal_Int32* pType = pTypes; + const sal_Int32* pType = pTypes; for (sal_Int32 i = 1; i <= sal_Int32(sizeof(pTypes)/sizeof(pTypes[0])); ++i,++pType) { ORowSetValue aValue; diff --git a/connectivity/source/commontools/dbconversion.cxx b/connectivity/source/commontools/dbconversion.cxx index a09e09f04c46..e55fb987d9d4 100644 --- a/connectivity/source/commontools/dbconversion.cxx +++ b/connectivity/source/commontools/dbconversion.cxx @@ -188,7 +188,7 @@ namespace dbtools } //------------------------------------------------------------------------------ - static sal_Int32 aDaysInMonth[12] = { 31, 28, 31, 30, 31, 30, + static const sal_Int32 aDaysInMonth[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; //------------------------------------------------------------------------------ diff --git a/connectivity/source/commontools/sqlerror.cxx b/connectivity/source/commontools/sqlerror.cxx index bcf4a2cf18cc..de58dae08b47 100644 --- a/connectivity/source/commontools/sqlerror.cxx +++ b/connectivity/source/commontools/sqlerror.cxx @@ -113,7 +113,7 @@ namespace connectivity //-------------------------------------------------------------------- const OUString& SQLError_Impl::getMessagePrefix() { - static OUString s_sMessagePrefix( "[OOoBase]" ); + static const OUString s_sMessagePrefix( "[OOoBase]" ); return s_sMessagePrefix; } diff --git a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx index cd71d722dd63..59369b27ee22 100644 --- a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx +++ b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx @@ -1004,7 +1004,7 @@ Reference< XResultSet > SAL_CALL OEvoabDatabaseMetaData::getTableTypes( ) throw /* Dont need to change as evoab driver supports only table */ // there exists no possibility to get table types so we have to check - static OUString sTableTypes[] = + static const OUString sTableTypes[] = { OUString("TABLE"), // Currently we only support a 'TABLE' nothing more complex diff --git a/connectivity/source/drivers/mork/MDatabaseMetaData.cxx b/connectivity/source/drivers/mork/MDatabaseMetaData.cxx index fa30285f9d7c..1f7e8798e40f 100644 --- a/connectivity/source/drivers/mork/MDatabaseMetaData.cxx +++ b/connectivity/source/drivers/mork/MDatabaseMetaData.cxx @@ -846,7 +846,7 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsBatchUpdates( ) throw(SQLException Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes( ) throw(SQLException, RuntimeException) { // there exists no possibility to get table types so we have to check - static OUString sTableTypes[] = + static const OUString sTableTypes[] = { OUString("TABLE"), OUString("VIEW") |