summaryrefslogtreecommitdiff
path: root/ucbhelper/source/provider
diff options
context:
space:
mode:
Diffstat (limited to 'ucbhelper/source/provider')
-rw-r--r--ucbhelper/source/provider/resultset.cxx2
-rw-r--r--ucbhelper/source/provider/resultsetmetadata.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/ucbhelper/source/provider/resultset.cxx b/ucbhelper/source/provider/resultset.cxx
index 421b6aa853f2..19e604cde931 100644
--- a/ucbhelper/source/provider/resultset.cxx
+++ b/ucbhelper/source/provider/resultset.cxx
@@ -46,7 +46,7 @@ struct PropertyInfo
static const uno::Type& sal_Int32_getCppuType()
{
- return getCppuType( static_cast< const sal_Int32 * >( 0 ) );
+ return cppu::UnoType<sal_Int32>::get();
}
static const uno::Type& sal_Bool_getCppuType()
diff --git a/ucbhelper/source/provider/resultsetmetadata.cxx b/ucbhelper/source/provider/resultsetmetadata.cxx
index 25b6e8483502..1dffea6beab0 100644
--- a/ucbhelper/source/provider/resultsetmetadata.cxx
+++ b/ucbhelper/source/provider/resultsetmetadata.cxx
@@ -460,7 +460,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column )
nType = DataType::VARCHAR; // XRow::getString
else if ( rType == getCppuBooleanType() )
nType = DataType::BIT; // XRow::getBoolean
- else if ( rType == getCppuType( static_cast< const sal_Int32 * >( 0 ) ) )
+ else if ( rType == cppu::UnoType<sal_Int32>::get() )
nType = DataType::INTEGER; // XRow::getInt
else if ( rType == getCppuType( static_cast< const sal_Int64 * >( 0 ) ) )
nType = DataType::BIGINT; // XRow::getLong