summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-06 22:51:07 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-06 22:51:42 +0200
commitdb3b1dd86ed467889d595e080b00fc957eb155ff (patch)
tree75a3d77e016aae6605e97d94f71a2d3918873b68 /forms
parent3ed4078ad2e1bb35829b118a5067ad3a43365bbc (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part3
Change-Id: Ibabd6d2d5e84fe007364bd1a4182a01ea2352b7a
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/FormattedField.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/forms/source/component/FormattedField.cxx b/forms/source/component/FormattedField.cxx
index b9767ebb5027..04795df0fff6 100644
--- a/forms/source/component/FormattedField.cxx
+++ b/forms/source/component/FormattedField.cxx
@@ -1005,23 +1005,23 @@ Any OFormattedModel::translateDbColumnToControlValue()
Sequence< Type > OFormattedModel::getSupportedBindingTypes()
{
::std::list< Type > aTypes;
- aTypes.push_back( ::getCppuType( static_cast< double* >( NULL ) ) );
+ aTypes.push_back( cppu::UnoType< double >::get() );
switch ( m_nKeyType & ~NumberFormat::DEFINED )
{
case NumberFormat::DATE:
- aTypes.push_front(::getCppuType( static_cast< UNODate* >( NULL ) ) );
+ aTypes.push_front(cppu::UnoType< UNODate >::get() );
break;
case NumberFormat::TIME:
- aTypes.push_front(::getCppuType( static_cast< UNOTime* >( NULL ) ) );
+ aTypes.push_front(cppu::UnoType< UNOTime >::get() );
break;
case NumberFormat::DATETIME:
- aTypes.push_front(::getCppuType( static_cast< UNODateTime* >( NULL ) ) );
+ aTypes.push_front(cppu::UnoType< UNODateTime >::get() );
break;
case NumberFormat::TEXT:
- aTypes.push_front(::getCppuType( static_cast< OUString* >( NULL ) ) );
+ aTypes.push_front(cppu::UnoType< OUString >::get() );
break;
case NumberFormat::LOGICAL:
- aTypes.push_front(::getCppuType( static_cast< sal_Bool* >( NULL ) ) );
+ aTypes.push_front(cppu::UnoType< sal_Bool >::get() );
break;
}
Sequence< Type > aTypesRet( aTypes.size() );