diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-01 08:42:56 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-01 08:42:56 +0200 |
commit | 15bdb0ae87fb7514d224657ce74e92bdad8f9c00 (patch) | |
tree | 0730892f4a3877124016ed0c2e8f76c56ebc3d05 /ucbhelper | |
parent | 018e85387e1ed62ab8188ad4cb0728ee2a0a797c (diff) |
Replace remaining getCppuType et al with cppu::UnoType
Change-Id: I0ecb96d6f26c827640f3329c81884001f860090d
Diffstat (limited to 'ucbhelper')
-rw-r--r-- | ucbhelper/source/provider/propertyvalueset.cxx | 4 | ||||
-rw-r--r-- | ucbhelper/source/provider/resultset.cxx | 2 | ||||
-rw-r--r-- | ucbhelper/source/provider/resultsetmetadata.cxx | 6 |
3 files changed, 6 insertions, 6 deletions
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<bool>::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<bool>::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<cppu::UnoVoidType>::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<OUString>::get() ) nType = DataType::VARCHAR; // XRow::getString - else if ( rType == getCppuBooleanType() ) + else if ( rType == cppu::UnoType<bool>::get() ) nType = DataType::BIT; // XRow::getBoolean else if ( rType == cppu::UnoType<sal_Int32>::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<double>::get() ) nType = DataType::DOUBLE; // XRow::getDouble - else if ( rType == getCppuType( static_cast< const Sequence< sal_Int8 > * >( 0 ) ) ) + else if ( rType == cppu::UnoType<Sequence<sal_Int8>>::get() ) nType = DataType::VARBINARY;// XRow::getBytes else if ( rType == cppu::UnoType<Date>::get() ) nType = DataType::DATE; // XRow::getDate |