diff --git a/connectivity/source/commontools/dbtools.cxx b/connectivity/source/commontools/dbtools.cxx index 3ce8bf22ab1b..7ebf4a165622 100644 --- a/connectivity/source/commontools/dbtools.cxx +++ b/connectivity/source/commontools/dbtools.cxx @@ -1508,24 +1508,24 @@ bool implUpdateObject(const Reference< XRowUpdate >& _rxUpdatedObject, break; case TypeClass_SEQUENCE: - if (_rValue.getValueType() == ::getCppuType((const Sequence< sal_Int8 > *)0)) + if (_rValue.getValueType() == cppu::UnoType< Sequence< sal_Int8 > >::get()) _rxUpdatedObject->updateBytes(_nColumnIndex, *(Sequence*)_rValue.getValue()); else bSuccessfullyReRouted = false; break; case TypeClass_STRUCT: - if (_rValue.getValueType() == ::getCppuType((const DateTime*)0)) + if (_rValue.getValueType() == cppu::UnoType::get()) _rxUpdatedObject->updateTimestamp(_nColumnIndex, *(DateTime*)_rValue.getValue()); - else if (_rValue.getValueType() == ::getCppuType((const Date*)0)) + else if (_rValue.getValueType() == cppu::UnoType::get()) _rxUpdatedObject->updateDate(_nColumnIndex, *(Date*)_rValue.getValue()); - else if (_rValue.getValueType() == ::getCppuType((const Time*)0)) + else if (_rValue.getValueType() == cppu::UnoType