Kaydet (Commit) 15bdb0ae authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Replace remaining getCppuType et al with cppu::UnoType

Change-Id: I0ecb96d6f26c827640f3329c81884001f860090d
üst 018e8538
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
#define CPPU_TYPE( T ) getCppuType( static_cast< T * >( 0 ) ) #define CPPU_TYPE( T ) cppu::UnoType<T>::get()
#define CPPU_TYPE_REF( T ) CPPU_TYPE( com::sun::star::uno::Reference< T > ) #define CPPU_TYPE_REF( T ) CPPU_TYPE( T )
// XTypeProvider impl. internals // XTypeProvider impl. internals
......
...@@ -226,7 +226,7 @@ class PropertyValues : public PropertyValuesVector {}; ...@@ -226,7 +226,7 @@ class PropertyValues : public PropertyValuesVector {};
GETVALUE_IMPL_TYPE( _type_, \ GETVALUE_IMPL_TYPE( _type_, \
_type_name_, \ _type_name_, \
_member_name_, \ _member_name_, \
getCppuType( static_cast< const _type_ * >( 0 ) ) ) cppu::UnoType<_type_>::get() )
#define SETVALUE_IMPL( _prop_name_, _type_name_, _member_name_, _value_ ) \ #define SETVALUE_IMPL( _prop_name_, _type_name_, _member_name_, _value_ ) \
\ \
...@@ -333,7 +333,7 @@ sal_Bool SAL_CALL PropertyValueSet::getBoolean( sal_Int32 columnIndex ) ...@@ -333,7 +333,7 @@ sal_Bool SAL_CALL PropertyValueSet::getBoolean( sal_Int32 columnIndex )
throw( SQLException, RuntimeException, std::exception ) throw( SQLException, RuntimeException, std::exception )
{ {
GETVALUE_IMPL_TYPE( GETVALUE_IMPL_TYPE(
bool, BOOLEAN_VALUE_SET, bBoolean, getCppuBooleanType() ); bool, BOOLEAN_VALUE_SET, bBoolean, cppu::UnoType<bool>::get() );
} }
......
...@@ -51,7 +51,7 @@ static const uno::Type& sal_Int32_getCppuType() ...@@ -51,7 +51,7 @@ static const uno::Type& sal_Int32_getCppuType()
static const uno::Type& sal_Bool_getCppuType() static const uno::Type& sal_Bool_getCppuType()
{ {
return getCppuBooleanType(); return cppu::UnoType<bool>::get();
} }
static const PropertyInfo aPropertyTable[] = static const PropertyInfo aPropertyTable[] =
......
...@@ -405,7 +405,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column ) ...@@ -405,7 +405,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column )
return DataType::SQLNULL; return DataType::SQLNULL;
if ( m_aProps.getConstArray()[ column - 1 ].Type if ( m_aProps.getConstArray()[ column - 1 ].Type
== getCppuVoidType() ) == cppu::UnoType<cppu::UnoVoidType>::get() )
{ {
// No type given. Try UCB's Properties Manager... // No type given. Try UCB's Properties Manager...
...@@ -458,7 +458,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column ) ...@@ -458,7 +458,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column )
if ( rType == cppu::UnoType<OUString>::get() ) if ( rType == cppu::UnoType<OUString>::get() )
nType = DataType::VARCHAR; // XRow::getString nType = DataType::VARCHAR; // XRow::getString
else if ( rType == getCppuBooleanType() ) else if ( rType == cppu::UnoType<bool>::get() )
nType = DataType::BIT; // XRow::getBoolean nType = DataType::BIT; // XRow::getBoolean
else if ( rType == cppu::UnoType<sal_Int32>::get() ) else if ( rType == cppu::UnoType<sal_Int32>::get() )
nType = DataType::INTEGER; // XRow::getInt nType = DataType::INTEGER; // XRow::getInt
...@@ -472,7 +472,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column ) ...@@ -472,7 +472,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column )
nType = DataType::REAL; // XRow::getFloat nType = DataType::REAL; // XRow::getFloat
else if ( rType == cppu::UnoType<double>::get() ) else if ( rType == cppu::UnoType<double>::get() )
nType = DataType::DOUBLE; // XRow::getDouble 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 nType = DataType::VARBINARY;// XRow::getBytes
else if ( rType == cppu::UnoType<Date>::get() ) else if ( rType == cppu::UnoType<Date>::get() )
nType = DataType::DATE; // XRow::getDate nType = DataType::DATE; // XRow::getDate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment