diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-05-10 00:14:44 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-05-10 06:19:42 +0200 |
commit | 5ec7a589bed7991ffe8ad9a2f544a6699d159765 (patch) | |
tree | f9020375a29477fe7e4d22970a4040c36abadbdf /connectivity/source/drivers/ado | |
parent | 83a88b942134314e86ac612d0ef70a8e4919e4af (diff) |
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part8
Change-Id: Ie16923d17541e84e0d7424fffe37caf410786abf
Diffstat (limited to 'connectivity/source/drivers/ado')
-rw-r--r-- | connectivity/source/drivers/ado/Aolevariant.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/connectivity/source/drivers/ado/Aolevariant.cxx b/connectivity/source/drivers/ado/Aolevariant.cxx index af91f6fe7af6..02e6fa268a59 100644 --- a/connectivity/source/drivers/ado/Aolevariant.cxx +++ b/connectivity/source/drivers/ado/Aolevariant.cxx @@ -699,16 +699,16 @@ SAFEARRAY* OLEVariant::getUI1SAFEARRAYPtr() const aValue.setValue(NULL, Type()); break; case VT_I2: - aValue.setValue( & iVal, getCppuType( (sal_Int16*)0)); + aValue.setValue( & iVal, cppu::UnoType<sal_Int16>::get()); break; case VT_I4: - aValue.setValue( & lVal, getCppuType( (sal_Int32*)0)); + aValue.setValue( & lVal, cppu::UnoType<sal_Int32>::get()); break; case VT_R4: - aValue.setValue( & fltVal, getCppuType( (float*)0)); + aValue.setValue( & fltVal, cppu::UnoType<float>::get()); break; case VT_R8: - aValue.setValue(& dblVal, getCppuType( (double*)0)); + aValue.setValue(& dblVal, cppu::UnoType<double>::get()); break; case VT_CY: { @@ -746,7 +746,7 @@ SAFEARRAY* OLEVariant::getUI1SAFEARRAYPtr() const aValue.setValue( & ulVal, getCppuType( (sal_uInt32*)0)); break; case VT_INT: - aValue.setValue( & intVal, getCppuType( (sal_Int32*)0)); + aValue.setValue( & intVal, cppu::UnoType<sal_Int32>::get()); break; case VT_UINT: aValue.setValue( & uintVal, getCppuType( (sal_uInt32*)0)); |