summaryrefslogtreecommitdiff
path: root/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-18 00:35:50 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-18 00:36:10 +0200
commit0d8908b35999795ba1ffe2d3530aa9711918840a (patch)
tree92a84fad59387a092838d75398ed473c3784ad29 /chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
parent980dabdbc636d4a639b7227caf7c82fdc81b77c4 (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part16
Change-Id: I78b3a0151397d4e69521e6b2451e93ea6e463376
Diffstat (limited to 'chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx')
-rw-r--r--chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
index a62c6e242850..fba08dfe9e8b 100644
--- a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
@@ -179,7 +179,7 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "SolidType",
PROP_DIAGRAM_SOLIDTYPE,
- ::getCppuType( reinterpret_cast< sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
@@ -199,7 +199,7 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "NumberOfLines",
PROP_DIAGRAM_NUMBER_OF_LINES,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
@@ -212,7 +212,7 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "DataRowSource",
PROP_DIAGRAM_DATAROW_SOURCE,
- ::getCppuType( reinterpret_cast< const ::com::sun::star::chart::ChartDataRowSource * >(0)),
+ cppu::UnoType<com::sun::star::chart::ChartDataRowSource>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
@@ -242,7 +242,7 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "StartingAngle",
PROP_DIAGRAM_STARTING_ANGLE,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0) ),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
@@ -257,19 +257,19 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "Perspective",
PROP_DIAGRAM_PERSPECTIVE,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::MAYBEVOID ));
rOutProperties.push_back(
Property( "RotationHorizontal",
PROP_DIAGRAM_ROTATION_HORIZONTAL,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::MAYBEVOID ));
rOutProperties.push_back(
Property( "RotationVertical",
PROP_DIAGRAM_ROTATION_VERTICAL,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::MAYBEVOID ));
// XAxisXSupplier
@@ -413,7 +413,7 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "MissingValueTreatment",
PROP_DIAGRAM_MISSING_VALUE_TREATMENT,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEVOID ));
@@ -444,7 +444,7 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "ExternalData",
PROP_DIAGRAM_EXTERNALDATA,
- ::getCppuType( reinterpret_cast< const OUString * >(0)),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEVOID ));
}