summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-06 23:25:13 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-06 23:25:42 +0200
commit21010f3ea76a98ba8349b7ab3ffd7dcadd6a2d1c (patch)
tree64e7158943ed6f77e828f0ec5cd11c083496f883 /connectivity
parent127a5f5e12d33203f871ee810e4b7ef557b7764b (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part4
Change-Id: I8e52c2fd66f8f3291434ee82a745431e11b12caf
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/commontools/dbtools.cxx20
1 files changed, 10 insertions, 10 deletions
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<sal_Int8>*)_rValue.getValue());
else
bSuccessfullyReRouted = false;
break;
case TypeClass_STRUCT:
- if (_rValue.getValueType() == ::getCppuType((const DateTime*)0))
+ if (_rValue.getValueType() == cppu::UnoType<DateTime>::get())
_rxUpdatedObject->updateTimestamp(_nColumnIndex, *(DateTime*)_rValue.getValue());
- else if (_rValue.getValueType() == ::getCppuType((const Date*)0))
+ else if (_rValue.getValueType() == cppu::UnoType<Date>::get())
_rxUpdatedObject->updateDate(_nColumnIndex, *(Date*)_rValue.getValue());
- else if (_rValue.getValueType() == ::getCppuType((const Time*)0))
+ else if (_rValue.getValueType() == cppu::UnoType<Time>::get())
_rxUpdatedObject->updateTime(_nColumnIndex, *(Time*)_rValue.getValue());
else
bSuccessfullyReRouted = false;
break;
case TypeClass_INTERFACE:
- if (_rValue.getValueType() == ::getCppuType(static_cast<Reference< XInputStream>*>(NULL)))
+ if (_rValue.getValueType() == cppu::UnoType<Reference< XInputStream> >::get())
{
Reference< XInputStream > xStream;
_rValue >>= xStream;
@@ -1613,7 +1613,7 @@ bool implSetObject( const Reference< XParameters >& _rxParameters,
break;
case TypeClass_SEQUENCE:
- if (_rValue.getValueType() == ::getCppuType((const Sequence< sal_Int8 > *)0))
+ if (_rValue.getValueType() == cppu::UnoType< Sequence< sal_Int8 > >::get())
{
_rxParameters->setBytes(_nColumnIndex, *(Sequence<sal_Int8>*)_rValue.getValue());
}
@@ -1621,18 +1621,18 @@ bool implSetObject( const Reference< XParameters >& _rxParameters,
bSuccessfullyReRouted = false;
break;
case TypeClass_STRUCT:
- if (_rValue.getValueType() == ::getCppuType((const DateTime*)0))
+ if (_rValue.getValueType() == cppu::UnoType<DateTime>::get())
_rxParameters->setTimestamp(_nColumnIndex, *(DateTime*)_rValue.getValue());
- else if (_rValue.getValueType() == ::getCppuType((const Date*)0))
+ else if (_rValue.getValueType() == cppu::UnoType<Date>::get())
_rxParameters->setDate(_nColumnIndex, *(Date*)_rValue.getValue());
- else if (_rValue.getValueType() == ::getCppuType((const Time*)0))
+ else if (_rValue.getValueType() == cppu::UnoType<Time>::get())
_rxParameters->setTime(_nColumnIndex, *(Time*)_rValue.getValue());
else
bSuccessfullyReRouted = false;
break;
case TypeClass_INTERFACE:
- if (_rValue.getValueType() == ::getCppuType(static_cast<Reference< XInputStream>*>(NULL)))
+ if (_rValue.getValueType() == cppu::UnoType<Reference< XInputStream> >::get())
{
Reference< XInputStream > xStream;
_rValue >>= xStream;