summaryrefslogtreecommitdiff
path: root/xmloff/source/chart/PropertyMaps.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-10 00:14:44 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-10 06:19:42 +0200
commit5ec7a589bed7991ffe8ad9a2f544a6699d159765 (patch)
treef9020375a29477fe7e4d22970a4040c36abadbdf /xmloff/source/chart/PropertyMaps.cxx
parent83a88b942134314e86ac612d0ef70a8e4919e4af (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part8
Change-Id: Ie16923d17541e84e0d7424fffe37caf410786abf
Diffstat (limited to 'xmloff/source/chart/PropertyMaps.cxx')
-rw-r--r--xmloff/source/chart/PropertyMaps.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmloff/source/chart/PropertyMaps.cxx b/xmloff/source/chart/PropertyMaps.cxx
index 3d19b020c69a..a95a392705d3 100644
--- a/xmloff/source/chart/PropertyMaps.cxx
+++ b/xmloff/source/chart/PropertyMaps.cxx
@@ -110,7 +110,7 @@ const XMLPropertyHandler* XMLChartPropHdlFactory::GetPropertyHandler( sal_Int32
case XML_SCH_TYPE_ERROR_BAR_STYLE:
// here we have a constant rather than an enum
pHdl = new XMLErrorBarStylePropertyHdl( aXMLChartErrorBarStyleEnumMap,
- ::getCppuType((const sal_Int32*)0) );
+ ::cppu::UnoType<sal_Int32>::get() );
break;
case XML_SCH_TYPE_ERROR_INDICATOR_LOWER:
@@ -123,12 +123,12 @@ const XMLPropertyHandler* XMLChartPropHdlFactory::GetPropertyHandler( sal_Int32
case XML_SCH_TYPE_SOLID_TYPE:
// here we have a constant rather than an enum
pHdl = new XMLEnumPropertyHdl( aXMLChartSolidTypeEnumMap,
- ::getCppuType((const sal_Int32*)0) );
+ ::cppu::UnoType<sal_Int32>::get() );
break;
case XML_SCH_TYPE_LABEL_PLACEMENT_TYPE:
// here we have a constant rather than an enum
pHdl = new XMLEnumPropertyHdl( aXMLChartDataLabelPlacementEnumMap,
- ::getCppuType((const sal_Int32*)0) );
+ ::cppu::UnoType<sal_Int32>::get() );
break;
case XML_SCH_TYPE_DATAROWSOURCE:
pHdl = new XMLEnumPropertyHdl( aXMLChartDataRowSourceTypeEnumMap,
@@ -140,7 +140,7 @@ const XMLPropertyHandler* XMLChartPropHdlFactory::GetPropertyHandler( sal_Int32
case XML_SCH_TYPE_INTERPOLATION:
pHdl = new XMLEnumPropertyHdl( aXMLChartInterpolationTypeEnumMap,
- ::getCppuType((const sal_Int32*)0) );
+ ::cppu::UnoType<sal_Int32>::get() );
break;
case XML_SCH_TYPE_SYMBOL_TYPE:
pHdl = new XMLSymbolTypePropertyHdl( false );
@@ -152,7 +152,7 @@ const XMLPropertyHandler* XMLChartPropHdlFactory::GetPropertyHandler( sal_Int32
case XML_SCH_TYPE_MISSING_VALUE_TREATMENT:
pHdl = new XMLEnumPropertyHdl( aXMLChartMissingValueTreatmentEnumMap,
- ::getCppuType((const sal_Int32*)0) );
+ ::cppu::UnoType<sal_Int32>::get() );
break;
}
if( pHdl )