summaryrefslogtreecommitdiffstats
path: root/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx')
-rw-r--r--connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
index 4e6ae28ac7de..ec53891aae38 100644
--- a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
+++ b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
@@ -189,7 +189,7 @@ sal_Int32 SAL_CALL ODatabaseMetaDataResultSet::findColumn( const OUString& colum
void ODatabaseMetaDataResultSet::checkIndex(sal_Int32 columnIndex )
{
- if(columnIndex >= (sal_Int32)(*m_aRowsIter).size() || columnIndex < 1)
+ if(columnIndex >= static_cast<sal_Int32>((*m_aRowsIter).size()) || columnIndex < 1)
::dbtools::throwInvalidIndexException(*this);
}
@@ -675,14 +675,14 @@ ORowSetValueDecoratorRef const & ODatabaseMetaDataResultSet::getEmptyValue()
/// return an ORowSetValueDecorator with 0 as value
ORowSetValueDecoratorRef const & ODatabaseMetaDataResultSet::get0Value()
{
- static ORowSetValueDecoratorRef a0ValueRef = new ORowSetValueDecorator((sal_Int32)0);
+ static ORowSetValueDecoratorRef a0ValueRef = new ORowSetValueDecorator(sal_Int32(0));
return a0ValueRef;
}
/// return an ORowSetValueDecorator with 1 as value
ORowSetValueDecoratorRef const & ODatabaseMetaDataResultSet::get1Value()
{
- static ORowSetValueDecoratorRef a1ValueRef = new ORowSetValueDecorator((sal_Int32)1);
+ static ORowSetValueDecoratorRef a1ValueRef = new ORowSetValueDecorator(sal_Int32(1));
return a1ValueRef;
}