From 15bdb0ae87fb7514d224657ce74e92bdad8f9c00 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 1 Apr 2015 08:42:56 +0200 Subject: Replace remaining getCppuType et al with cppu::UnoType Change-Id: I0ecb96d6f26c827640f3329c81884001f860090d --- ucbhelper/source/provider/propertyvalueset.cxx | 4 ++-- ucbhelper/source/provider/resultset.cxx | 2 +- ucbhelper/source/provider/resultsetmetadata.cxx | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'ucbhelper') diff --git a/ucbhelper/source/provider/propertyvalueset.cxx b/ucbhelper/source/provider/propertyvalueset.cxx index d962af6052d3..1732e7085564 100644 --- a/ucbhelper/source/provider/propertyvalueset.cxx +++ b/ucbhelper/source/provider/propertyvalueset.cxx @@ -226,7 +226,7 @@ class PropertyValues : public PropertyValuesVector {}; GETVALUE_IMPL_TYPE( _type_, \ _type_name_, \ _member_name_, \ - getCppuType( static_cast< const _type_ * >( 0 ) ) ) + cppu::UnoType<_type_>::get() ) #define SETVALUE_IMPL( _prop_name_, _type_name_, _member_name_, _value_ ) \ \ @@ -333,7 +333,7 @@ sal_Bool SAL_CALL PropertyValueSet::getBoolean( sal_Int32 columnIndex ) throw( SQLException, RuntimeException, std::exception ) { GETVALUE_IMPL_TYPE( - bool, BOOLEAN_VALUE_SET, bBoolean, getCppuBooleanType() ); + bool, BOOLEAN_VALUE_SET, bBoolean, cppu::UnoType::get() ); } diff --git a/ucbhelper/source/provider/resultset.cxx b/ucbhelper/source/provider/resultset.cxx index 3a94891b26ff..231585c92793 100644 --- a/ucbhelper/source/provider/resultset.cxx +++ b/ucbhelper/source/provider/resultset.cxx @@ -51,7 +51,7 @@ static const uno::Type& sal_Int32_getCppuType() static const uno::Type& sal_Bool_getCppuType() { - return getCppuBooleanType(); + return cppu::UnoType::get(); } static const PropertyInfo aPropertyTable[] = diff --git a/ucbhelper/source/provider/resultsetmetadata.cxx b/ucbhelper/source/provider/resultsetmetadata.cxx index 0b389eb4d4ac..30a142203207 100644 --- a/ucbhelper/source/provider/resultsetmetadata.cxx +++ b/ucbhelper/source/provider/resultsetmetadata.cxx @@ -405,7 +405,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column ) return DataType::SQLNULL; if ( m_aProps.getConstArray()[ column - 1 ].Type - == getCppuVoidType() ) + == cppu::UnoType::get() ) { // No type given. Try UCB's Properties Manager... @@ -458,7 +458,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column ) if ( rType == cppu::UnoType::get() ) nType = DataType::VARCHAR; // XRow::getString - else if ( rType == getCppuBooleanType() ) + else if ( rType == cppu::UnoType::get() ) nType = DataType::BIT; // XRow::getBoolean else if ( rType == cppu::UnoType::get() ) nType = DataType::INTEGER; // XRow::getInt @@ -472,7 +472,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column ) nType = DataType::REAL; // XRow::getFloat else if ( rType == cppu::UnoType::get() ) nType = DataType::DOUBLE; // XRow::getDouble - else if ( rType == getCppuType( static_cast< const Sequence< sal_Int8 > * >( 0 ) ) ) + else if ( rType == cppu::UnoType>::get() ) nType = DataType::VARBINARY;// XRow::getBytes else if ( rType == cppu::UnoType::get() ) nType = DataType::DATE; // XRow::getDate -- cgit