summaryrefslogtreecommitdiff
path: root/chart2/source/controller
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
parent980dabdbc636d4a639b7227caf7c82fdc81b77c4 (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part16
Change-Id: I78b3a0151397d4e69521e6b2451e93ea6e463376
Diffstat (limited to 'chart2/source/controller')
-rw-r--r--chart2/source/controller/chartapiwrapper/AxisWrapper.cxx42
-rw-r--r--chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx2
-rw-r--r--chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx18
-rw-r--r--chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx18
-rw-r--r--chart2/source/controller/chartapiwrapper/LegendWrapper.cxx4
-rw-r--r--chart2/source/controller/chartapiwrapper/TitleWrapper.cxx4
-rw-r--r--chart2/source/controller/chartapiwrapper/WrappedDataCaptionProperties.cxx2
-rw-r--r--chart2/source/controller/chartapiwrapper/WrappedSplineProperties.cxx6
-rw-r--r--chart2/source/controller/chartapiwrapper/WrappedStatisticProperties.cxx20
-rw-r--r--chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx6
-rw-r--r--chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx10
-rw-r--r--chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx4
-rw-r--r--chart2/source/controller/main/ChartController.cxx4
13 files changed, 70 insertions, 70 deletions
diff --git a/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx b/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx
index ddad87b19fad..06d56b3ef293 100644
--- a/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx
@@ -110,28 +110,28 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "Max",
PROP_AXIS_MAX,
- ::getCppuType( reinterpret_cast< const double * >(0)),
+ cppu::UnoType<double>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEVOID ));
rOutProperties.push_back(
Property( "Min",
PROP_AXIS_MIN,
- ::getCppuType( reinterpret_cast< const double * >(0)),
+ cppu::UnoType<double>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEVOID ));
rOutProperties.push_back(
Property( "StepMain",
PROP_AXIS_STEPMAIN,
- ::getCppuType( reinterpret_cast< const double * >(0)),
+ cppu::UnoType<double>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEVOID ));
rOutProperties.push_back(
Property( "StepHelpCount",
PROP_AXIS_STEPHELP_COUNT,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEVOID ));
@@ -139,7 +139,7 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "StepHelp",
PROP_AXIS_STEPHELP,
- ::getCppuType( reinterpret_cast< const double * >(0)),
+ cppu::UnoType<double>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEVOID ));
@@ -174,21 +174,21 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "AxisType",
PROP_AXIS_TYPE,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)), //type com::sun::star::chart::ChartAxisType
+ cppu::UnoType<sal_Int32>::get(), //type com::sun::star::chart::ChartAxisType
//#i111967# no PropertyChangeEvent is fired on change so far
beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "TimeIncrement",
PROP_AXIS_TIME_INCREMENT,
- ::getCppuType( reinterpret_cast< const ::com::sun::star::chart::TimeIncrement * >(0)),
+ cppu::UnoType<com::sun::star::chart::TimeIncrement>::get(),
//#i111967# no PropertyChangeEvent is fired on change so far
beans::PropertyAttribute::MAYBEVOID ));
rOutProperties.push_back(
Property( "ExplicitTimeIncrement",
PROP_AXIS_EXPLICIT_TIME_INCREMENT,
- ::getCppuType( reinterpret_cast< const ::com::sun::star::chart::TimeIncrement * >(0)),
+ cppu::UnoType<com::sun::star::chart::TimeIncrement>::get(),
beans::PropertyAttribute::READONLY |
beans::PropertyAttribute::MAYBEVOID ));
@@ -217,19 +217,19 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "CrossoverPosition",
PROP_AXIS_CROSSOVER_POSITION,
- ::getCppuType( reinterpret_cast< const ::com::sun::star::chart::ChartAxisPosition * >(0)),
+ cppu::UnoType<com::sun::star::chart::ChartAxisPosition>::get(),
beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "CrossoverValue",
PROP_AXIS_CROSSOVER_VALUE,
- ::getCppuType( reinterpret_cast< const double * >(0)),
+ cppu::UnoType<double>::get(),
beans::PropertyAttribute::MAYBEVOID ));
rOutProperties.push_back(
Property( "Origin",
PROP_AXIS_ORIGIN,
- ::getCppuType( reinterpret_cast< const double * >(0)),
+ cppu::UnoType<double>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEVOID ));
@@ -244,21 +244,21 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "Marks",
PROP_AXIS_MARKS,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "HelpMarks",
PROP_AXIS_HELPMARKS,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "MarkPosition",
PROP_AXIS_MARK_POSITION,
- ::getCppuType( reinterpret_cast< const ::com::sun::star::chart::ChartAxisMarkPosition * >(0)),
+ cppu::UnoType<com::sun::star::chart::ChartAxisMarkPosition>::get(),
beans::PropertyAttribute::MAYBEDEFAULT ));
//Properties for labels:
@@ -272,7 +272,7 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "NumberFormat",
PROP_AXIS_NUMBERFORMAT,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
@@ -286,20 +286,20 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "LabelPosition",
PROP_AXIS_LABEL_POSITION,
- ::getCppuType( reinterpret_cast< const ::com::sun::star::chart::ChartAxisLabelPosition * >(0)),
+ cppu::UnoType<com::sun::star::chart::ChartAxisLabelPosition>::get(),
beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "TextRotation",
PROP_AXIS_TEXT_ROTATION,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "ArrangeOrder",
PROP_AXIS_ARRANGE_ORDER,
- ::getCppuType( reinterpret_cast< const ::com::sun::star::chart::ChartAxisArrangeOrderType * >(0)),
+ cppu::UnoType<com::sun::star::chart::ChartAxisArrangeOrderType>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
@@ -328,14 +328,14 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "Overlap",
PROP_AXIS_OVERLAP,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
//#i111967# no PropertyChangeEvent is fired on change so far
beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "GapWidth",
PROP_AXIS_GAP_WIDTH,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
//#i111967# no PropertyChangeEvent is fired on change so far
beans::PropertyAttribute::MAYBEDEFAULT ));
@@ -351,7 +351,7 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "BuiltInUnit",
PROP_AXIS_BUILTINUNIT,
- ::getCppuType( reinterpret_cast< const OUString * >(0)),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
}
diff --git a/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx b/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx
index 32986f26bf22..4633f2ac8607 100644
--- a/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx
@@ -201,7 +201,7 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "BaseDiagram",
PROP_DOCUMENT_BASEDIAGRAM,
- ::getCppuType( reinterpret_cast< const OUString * >(0)),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEVOID ));
rOutProperties.push_back(
diff --git a/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx b/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx
index d33e617faeaf..46384871b1e9 100644
--- a/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx
@@ -88,56 +88,56 @@ void lcl_AddPropertiesToVector_PointProperties(
rOutProperties.push_back(
Property( "SolidType",
PROP_SERIES_DATAPOINT_SOLIDTYPE,
- ::getCppuType( reinterpret_cast< sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "SegmentOffset",
PROP_SERIES_DATAPOINT_SEGMENT_OFFSET,
- ::getCppuType( reinterpret_cast< sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "D3DPercentDiagonal",
PROP_SERIES_DATAPOINT_PERCENT_DIAGONAL,
- ::getCppuType( reinterpret_cast< sal_Int16 * >(0)),
+ cppu::UnoType<sal_Int16>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEVOID ));
rOutProperties.push_back(
Property( "LabelSeparator",
PROP_SERIES_DATAPOINT_LABEL_SEPARATOR,
- ::getCppuType( reinterpret_cast< const OUString * >(0)),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "NumberFormat",
PROP_SERIES_NUMBERFORMAT,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEVOID ));
rOutProperties.push_back(
Property( "PercentageNumberFormat",
PROP_SERIES_PERCENTAGE_NUMBERFORMAT,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEVOID ));
rOutProperties.push_back(
Property( "LabelPlacement",
PROP_SERIES_DATAPOINT_LABEL_PLACEMENT,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEVOID ));
rOutProperties.push_back(
Property( "TextRotation",
PROP_SERIES_DATAPOINT_TEXT_ROTATION,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
}
@@ -148,7 +148,7 @@ void lcl_AddPropertiesToVector_SeriesOnly(
rOutProperties.push_back(
Property( "Axis",
PROP_SERIES_ATTACHED_AXIS,
- ::getCppuType( reinterpret_cast< sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
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 ));
}
diff --git a/chart2/source/controller/chartapiwrapper/LegendWrapper.cxx b/chart2/source/controller/chartapiwrapper/LegendWrapper.cxx
index 380bc7bc6f14..e069fc21aba7 100644
--- a/chart2/source/controller/chartapiwrapper/LegendWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/LegendWrapper.cxx
@@ -224,14 +224,14 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "Alignment",
PROP_LEGEND_ALIGNMENT,
- ::getCppuType( reinterpret_cast< const ::com::sun::star::chart::ChartLegendPosition * >(0)),
+ cppu::UnoType<com::sun::star::chart::ChartLegendPosition>::get(),
//#i111967# no PropertyChangeEvent is fired on change so far
beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "Expansion",
PROP_LEGEND_EXPANSION,
- ::getCppuType( reinterpret_cast< const ::com::sun::star::chart::ChartLegendExpansion * >(0)),
+ cppu::UnoType<com::sun::star::chart::ChartLegendExpansion>::get(),
//#i111967# no PropertyChangeEvent is fired on change so far
beans::PropertyAttribute::MAYBEDEFAULT ));
}
diff --git a/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx b/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx
index bed03503ebee..5197a0955ecd 100644
--- a/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx
@@ -142,14 +142,14 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "String",
PROP_TITLE_STRING,
- ::getCppuType( reinterpret_cast< const OUString * >(0)),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEVOID ));
rOutProperties.push_back(
Property( "TextRotation",
PROP_TITLE_TEXT_ROTATION,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
diff --git a/chart2/source/controller/chartapiwrapper/WrappedDataCaptionProperties.cxx b/chart2/source/controller/chartapiwrapper/WrappedDataCaptionProperties.cxx
index 2b352032a2ad..8ea038b79074 100644
--- a/chart2/source/controller/chartapiwrapper/WrappedDataCaptionProperties.cxx
+++ b/chart2/source/controller/chartapiwrapper/WrappedDataCaptionProperties.cxx
@@ -104,7 +104,7 @@ void WrappedDataCaptionProperties::addProperties( ::std::vector< Property > & rO
rOutProperties.push_back(
Property( "DataCaption",
PROP_CHART_DATAPOINT_DATA_CAPTION,
- ::getCppuType( reinterpret_cast< sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
}
diff --git a/chart2/source/controller/chartapiwrapper/WrappedSplineProperties.cxx b/chart2/source/controller/chartapiwrapper/WrappedSplineProperties.cxx
index 13cb3cf99afd..1698c0ac7240 100644
--- a/chart2/source/controller/chartapiwrapper/WrappedSplineProperties.cxx
+++ b/chart2/source/controller/chartapiwrapper/WrappedSplineProperties.cxx
@@ -186,21 +186,21 @@ void WrappedSplineProperties::addProperties( ::std::vector< Property > & rOutPro
rOutProperties.push_back(
Property( CHART_UNONAME_SPLINE_TYPE,
PROP_CHART_SPLINE_TYPE,
- ::getCppuType( reinterpret_cast< sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT
| beans::PropertyAttribute::MAYBEVOID ));
rOutProperties.push_back(
Property( CHART_UNONAME_SPLINE_ORDER,
PROP_CHART_SPLINE_ORDER,
- ::getCppuType( reinterpret_cast< sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT
| beans::PropertyAttribute::MAYBEVOID ));
rOutProperties.push_back(
Property( CHART_UNONAME_SPLINE_RESOLUTION,
PROP_CHART_SPLINE_RESOLUTION,
- ::getCppuType( reinterpret_cast< sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT
| beans::PropertyAttribute::MAYBEVOID ));
diff --git a/chart2/source/controller/chartapiwrapper/WrappedStatisticProperties.cxx b/chart2/source/controller/chartapiwrapper/WrappedStatisticProperties.cxx
index f0e5080b3525..796d755912a3 100644
--- a/chart2/source/controller/chartapiwrapper/WrappedStatisticProperties.cxx
+++ b/chart2/source/controller/chartapiwrapper/WrappedStatisticProperties.cxx
@@ -992,13 +992,13 @@ void WrappedStatisticProperties::addProperties( ::std::vector< Property > & rOut
rOutProperties.push_back(
Property( "ConstantErrorLow",
PROP_CHART_STATISTIC_CONST_ERROR_LOW,
- ::getCppuType( reinterpret_cast< double * >(0)),
+ cppu::UnoType<double>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "ConstantErrorHigh",
PROP_CHART_STATISTIC_CONST_ERROR_HIGH,
- ::getCppuType( reinterpret_cast< double * >(0)),
+ cppu::UnoType<double>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
@@ -1010,49 +1010,49 @@ void WrappedStatisticProperties::addProperties( ::std::vector< Property > & rOut
rOutProperties.push_back(
Property( "ErrorCategory",
PROP_CHART_STATISTIC_ERROR_CATEGORY,
- ::getCppuType( reinterpret_cast< ::com::sun::star::chart::ChartErrorCategory * >(0)),
+ cppu::UnoType<com::sun::star::chart::ChartErrorCategory>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "ErrorBarStyle",
PROP_CHART_STATISTIC_ERROR_BAR_STYLE,
- ::getCppuType( reinterpret_cast< sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "PercentageError",
PROP_CHART_STATISTIC_PERCENT_ERROR,
- ::getCppuType( reinterpret_cast< double * >(0)),
+ cppu::UnoType<double>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "ErrorMargin",
PROP_CHART_STATISTIC_ERROR_MARGIN,
- ::getCppuType( reinterpret_cast< double * >(0)),
+ cppu::UnoType<double>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "ErrorIndicator",
PROP_CHART_STATISTIC_ERROR_INDICATOR,
- ::getCppuType( reinterpret_cast< ::com::sun::star::chart::ChartErrorIndicatorType * >(0)),
+ cppu::UnoType<com::sun::star::chart::ChartErrorIndicatorType>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "ErrorBarRangePositive",
PROP_CHART_STATISTIC_ERROR_RANGE_POSITIVE,
- ::getCppuType( reinterpret_cast< OUString * >(0)),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "ErrorBarRangeNegative",
PROP_CHART_STATISTIC_ERROR_RANGE_NEGATIVE,
- ::getCppuType( reinterpret_cast< OUString * >(0)),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "RegressionCurves",
PROP_CHART_STATISTIC_REGRESSION_CURVES,
- ::getCppuType( reinterpret_cast< const ::com::sun::star::chart::ChartRegressionCurveType * >(0)),
+ cppu::UnoType<com::sun::star::chart::ChartRegressionCurveType>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
diff --git a/chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx b/chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx
index bc71beefb35c..59050edfbbee 100644
--- a/chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx
+++ b/chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx
@@ -185,21 +185,21 @@ void WrappedSymbolProperties::addProperties( ::std::vector< Property > & rOutPro
rOutProperties.push_back(
Property( "SymbolType",
PROP_CHART_SYMBOL_TYPE,
- ::getCppuType( reinterpret_cast< sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "SymbolBitmapURL",
PROP_CHART_SYMBOL_BITMAP_URL,
- ::getCppuType( reinterpret_cast< OUString * >(0)),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "SymbolSize",
PROP_CHART_SYMBOL_SIZE,
- ::getCppuType( reinterpret_cast< awt::Size * >(0)),
+ cppu::UnoType<awt::Size>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
diff --git a/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx b/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx
index dc3bc33bf364..d312b58e4c1b 100644
--- a/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx
+++ b/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx
@@ -85,27 +85,27 @@ void SAL_CALL CreationWizardUnoDlg::release() throw ()
}
uno::Any SAL_CALL CreationWizardUnoDlg::queryAggregation( uno::Type const & rType ) throw (uno::RuntimeException, std::exception)
{
- if (rType == ::getCppuType( (uno::Reference< ui::dialogs::XExecutableDialog > const *)0 ))
+ if (rType == cppu::UnoType<ui::dialogs::XExecutableDialog>::get())
{
void * p = static_cast< ui::dialogs::XExecutableDialog * >( this );
return uno::Any( &p, rType );
}
- else if (rType == ::getCppuType( (uno::Reference< lang::XServiceInfo > const *)0 ))
+ else if (rType == cppu::UnoType<lang::XServiceInfo>::get())
{
void * p = static_cast< lang::XTypeProvider * >( this );
return uno::Any( &p, rType );
}
- else if (rType == ::getCppuType( (uno::Reference< lang::XInitialization > const *)0 ))
+ else if (rType == cppu::UnoType<lang::XInitialization>::get())
{
void * p = static_cast< lang::XInitialization * >( this );
return uno::Any( &p, rType );
}
- else if (rType == ::getCppuType( (uno::Reference< frame::XTerminateListener > const *)0 ))
+ else if (rType == cppu::UnoType<frame::XTerminateListener>::get())
{
void * p = static_cast< frame::XTerminateListener * >( this );
return uno::Any( &p, rType );
}
- else if (rType == ::getCppuType( (uno::Reference< beans::XPropertySet > const *)0 ))
+ else if (rType == cppu::UnoType<beans::XPropertySet>::get())
{
void * p = static_cast< beans::XPropertySet * >( this );
return uno::Any( &p, rType );
diff --git a/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx b/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx
index f7e03ff9458d..db934341d8b9 100644
--- a/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx
@@ -700,7 +700,7 @@ bool GraphicPropertyItemConverter::ApplySpecialItem(
if( rItem.QueryValue( aValue ))
{
OSL_ENSURE( ! aValue.isExtractableTo(
- ::getCppuType( reinterpret_cast< const sal_Int16 * >(0))),
+ cppu::UnoType<sal_Int16>::get()),
"TransparenceItem QueryValue bug is fixed. Remove hack." );
sal_Int32 nValue = 0;
if( aValue >>= nValue )
@@ -737,7 +737,7 @@ bool GraphicPropertyItemConverter::ApplySpecialItem(
if( rItem.QueryValue( aValue ))
{
OSL_ENSURE( ! aValue.isExtractableTo(
- ::getCppuType( reinterpret_cast< const sal_Int16 * >(0))),
+ cppu::UnoType<sal_Int16>::get()),
"TransparenceItem QueryValue bug is fixed. Remove hack." );
sal_Int32 nValue = 0;
if( aValue >>= nValue )
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx
index caf03db40f45..ef1d606fd1a6 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -804,7 +804,7 @@ void SAL_CALL ChartController::addEventListener(
return; //behave passive if already disposed or suspended
//--add listener
- m_aLifeTimeManager.m_aListenerContainer.addInterface( ::getCppuType((const uno::Reference< lang::XEventListener >*)0), xListener );
+ m_aLifeTimeManager.m_aListenerContainer.addInterface( cppu::UnoType<lang::XEventListener>::get(), xListener );
}
void SAL_CALL ChartController::removeEventListener(
@@ -816,7 +816,7 @@ void SAL_CALL ChartController::removeEventListener(
return; //behave passive if already disposed or suspended
//--remove listener
- m_aLifeTimeManager.m_aListenerContainer.removeInterface( ::getCppuType((const uno::Reference< lang::XEventListener >*)0), xListener );
+ m_aLifeTimeManager.m_aListenerContainer.removeInterface( cppu::UnoType<lang::XEventListener>::get(), xListener );
}
// util::XCloseListener