diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-05-11 10:09:04 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-05-11 10:16:42 +0200 |
commit | bd596286207adf06936939a3ef8018efc1055591 (patch) | |
tree | dc8e079155868ffbc5d023f04620c83f402dc6c2 /ucbhelper/source | |
parent | be44f0e91b6061f6bbe6b4da2f264eed70fb6542 (diff) |
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part10
Change-Id: I67acda35fa127547dcea0cd18c9dc16db7c00294
Diffstat (limited to 'ucbhelper/source')
-rw-r--r-- | ucbhelper/source/provider/resultset.cxx | 2 | ||||
-rw-r--r-- | ucbhelper/source/provider/resultsetmetadata.cxx | 2 |
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 |