summaryrefslogtreecommitdiff
path: root/chart2/source/model
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:23:25 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:23:25 +0200
commitbc14d27dd0b50a37ff7ec93b49de976e01c54d0d (patch)
treecfb06c9f5a18afb836014bc53e67bdf71ab95e6a /chart2/source/model
parent638a4ec6dc5b1ea83dba32d78a417a4eeee4032e (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: If5ab427ab320e2623df182e6143c4e7123610eae
Diffstat (limited to 'chart2/source/model')
-rw-r--r--chart2/source/model/inc/CartesianCoordinateSystem.hxx4
-rw-r--r--chart2/source/model/inc/ChartTypeManager.hxx2
-rw-r--r--chart2/source/model/inc/DataSeries.hxx2
-rw-r--r--chart2/source/model/inc/Diagram.hxx2
-rw-r--r--chart2/source/model/inc/PolarCoordinateSystem.hxx4
-rw-r--r--chart2/source/model/inc/XMLFilter.hxx4
-rw-r--r--chart2/source/model/main/Axis.hxx2
-rw-r--r--chart2/source/model/main/FormattedString.hxx2
-rw-r--r--chart2/source/model/main/GridProperties.hxx2
-rw-r--r--chart2/source/model/main/Legend.hxx2
-rw-r--r--chart2/source/model/main/PageBackground.hxx2
-rw-r--r--chart2/source/model/main/Title.hxx2
-rw-r--r--chart2/source/model/template/AreaChartType.hxx2
-rw-r--r--chart2/source/model/template/BarChartType.hxx2
-rw-r--r--chart2/source/model/template/BubbleChartType.hxx2
-rw-r--r--chart2/source/model/template/CandleStickChartType.hxx2
-rw-r--r--chart2/source/model/template/ColumnChartType.hxx2
-rw-r--r--chart2/source/model/template/FilledNetChartType.hxx2
-rw-r--r--chart2/source/model/template/GL3DBarChartType.hxx2
-rw-r--r--chart2/source/model/template/LineChartType.hxx2
-rw-r--r--chart2/source/model/template/NetChartType.hxx2
-rw-r--r--chart2/source/model/template/PieChartType.hxx2
-rw-r--r--chart2/source/model/template/ScatterChartType.hxx2
23 files changed, 26 insertions, 26 deletions
diff --git a/chart2/source/model/inc/CartesianCoordinateSystem.hxx b/chart2/source/model/inc/CartesianCoordinateSystem.hxx
index dc1de9167d42..f73f1b5158bf 100644
--- a/chart2/source/model/inc/CartesianCoordinateSystem.hxx
+++ b/chart2/source/model/inc/CartesianCoordinateSystem.hxx
@@ -70,7 +70,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new CartesianCoordinateSystem2d( xContext );
+ return static_cast<cppu::OWeakObject *>(new CartesianCoordinateSystem2d( xContext ));
}
// ____ XServiceInfo ____
virtual OUString SAL_CALL getImplementationName()
@@ -96,7 +96,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new CartesianCoordinateSystem3d( xContext );
+ return static_cast<cppu::OWeakObject *>(new CartesianCoordinateSystem3d( xContext ));
}
// ____ XServiceInfo ____
virtual OUString SAL_CALL getImplementationName()
diff --git a/chart2/source/model/inc/ChartTypeManager.hxx b/chart2/source/model/inc/ChartTypeManager.hxx
index c0be3882e490..092fa6f5c09b 100644
--- a/chart2/source/model/inc/ChartTypeManager.hxx
+++ b/chart2/source/model/inc/ChartTypeManager.hxx
@@ -64,7 +64,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new ChartTypeManager( xContext );
+ return static_cast<cppu::OWeakObject *>(new ChartTypeManager( xContext ));
}
protected:
diff --git a/chart2/source/model/inc/DataSeries.hxx b/chart2/source/model/inc/DataSeries.hxx
index 8940547072ee..5f61742d41e1 100644
--- a/chart2/source/model/inc/DataSeries.hxx
+++ b/chart2/source/model/inc/DataSeries.hxx
@@ -76,7 +76,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new DataSeries( xContext );
+ return static_cast<cppu::OWeakObject *>(new DataSeries( xContext ));
}
/// XServiceInfo declarations
virtual OUString SAL_CALL getImplementationName()
diff --git a/chart2/source/model/inc/Diagram.hxx b/chart2/source/model/inc/Diagram.hxx
index d1a17c3e3f33..ddeb9bc92952 100644
--- a/chart2/source/model/inc/Diagram.hxx
+++ b/chart2/source/model/inc/Diagram.hxx
@@ -69,7 +69,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new Diagram( xContext );
+ return static_cast<cppu::OWeakObject *>(new Diagram( xContext ));
}
/// XServiceInfo declarations
diff --git a/chart2/source/model/inc/PolarCoordinateSystem.hxx b/chart2/source/model/inc/PolarCoordinateSystem.hxx
index decf8ba381cc..285d4ae5a38f 100644
--- a/chart2/source/model/inc/PolarCoordinateSystem.hxx
+++ b/chart2/source/model/inc/PolarCoordinateSystem.hxx
@@ -70,7 +70,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new PolarCoordinateSystem2d( xContext );
+ return static_cast<cppu::OWeakObject *>(new PolarCoordinateSystem2d( xContext ));
}
// ____ XServiceInfo ____
virtual OUString SAL_CALL getImplementationName()
@@ -96,7 +96,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new PolarCoordinateSystem3d( xContext );
+ return static_cast<cppu::OWeakObject *>(new PolarCoordinateSystem3d( xContext ));
}
// ____ XServiceInfo ____
virtual OUString SAL_CALL getImplementationName()
diff --git a/chart2/source/model/inc/XMLFilter.hxx b/chart2/source/model/inc/XMLFilter.hxx
index 46118bdafc02..0c44682148b2 100644
--- a/chart2/source/model/inc/XMLFilter.hxx
+++ b/chart2/source/model/inc/XMLFilter.hxx
@@ -66,7 +66,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new XMLFilter( xContext );
+ return static_cast<cppu::OWeakObject *>(new XMLFilter( xContext ));
}
/// XServiceInfo declarations
virtual OUString SAL_CALL getImplementationName()
@@ -185,7 +185,7 @@ public:
static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL create(
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext) throw(::com::sun::star::uno::Exception)
{
- return (::cppu::OWeakObject *)new XMLReportFilterHelper( xContext );
+ return static_cast<cppu::OWeakObject *>(new XMLReportFilterHelper( xContext ));
}
static OUString getImplementationName_Static()
{
diff --git a/chart2/source/model/main/Axis.hxx b/chart2/source/model/main/Axis.hxx
index 506c60f7f229..3f649325553a 100644
--- a/chart2/source/model/main/Axis.hxx
+++ b/chart2/source/model/main/Axis.hxx
@@ -62,7 +62,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new Axis( xContext );
+ return static_cast<cppu::OWeakObject *>(new Axis( xContext ));
}
/// XServiceInfo declarations
virtual OUString SAL_CALL getImplementationName()
diff --git a/chart2/source/model/main/FormattedString.hxx b/chart2/source/model/main/FormattedString.hxx
index 38c74b225cbf..875c54df138c 100644
--- a/chart2/source/model/main/FormattedString.hxx
+++ b/chart2/source/model/main/FormattedString.hxx
@@ -67,7 +67,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new FormattedString( xContext );
+ return static_cast<cppu::OWeakObject *>(new FormattedString( xContext ));
}
/// merge XInterface implementations
diff --git a/chart2/source/model/main/GridProperties.hxx b/chart2/source/model/main/GridProperties.hxx
index 7124899637cf..3e4fa7cd7e5e 100644
--- a/chart2/source/model/main/GridProperties.hxx
+++ b/chart2/source/model/main/GridProperties.hxx
@@ -60,7 +60,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new GridProperties( xContext );
+ return static_cast<cppu::OWeakObject *>(new GridProperties( xContext ));
}
/// XServiceInfo declarations
diff --git a/chart2/source/model/main/Legend.hxx b/chart2/source/model/main/Legend.hxx
index f95d906bbcb4..525b4d5c1939 100644
--- a/chart2/source/model/main/Legend.hxx
+++ b/chart2/source/model/main/Legend.hxx
@@ -59,7 +59,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new Legend( xContext );
+ return static_cast<cppu::OWeakObject *>(new Legend( xContext ));
}
/// XServiceInfo declarations
diff --git a/chart2/source/model/main/PageBackground.hxx b/chart2/source/model/main/PageBackground.hxx
index e91011a81667..ed8148b14d99 100644
--- a/chart2/source/model/main/PageBackground.hxx
+++ b/chart2/source/model/main/PageBackground.hxx
@@ -56,7 +56,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new PageBackground( xContext );
+ return static_cast<cppu::OWeakObject *>(new PageBackground( xContext ));
}
/// XServiceInfo declarations
diff --git a/chart2/source/model/main/Title.hxx b/chart2/source/model/main/Title.hxx
index 127cb31ce33c..05f2d0181d50 100644
--- a/chart2/source/model/main/Title.hxx
+++ b/chart2/source/model/main/Title.hxx
@@ -57,7 +57,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new Title( xContext );
+ return static_cast<cppu::OWeakObject *>(new Title( xContext ));
}
/// XServiceInfo declarations
diff --git a/chart2/source/model/template/AreaChartType.hxx b/chart2/source/model/template/AreaChartType.hxx
index c58c84ee4517..933c7d738f84 100644
--- a/chart2/source/model/template/AreaChartType.hxx
+++ b/chart2/source/model/template/AreaChartType.hxx
@@ -49,7 +49,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new AreaChartType( xContext );
+ return static_cast<cppu::OWeakObject *>(new AreaChartType( xContext ));
}
protected:
diff --git a/chart2/source/model/template/BarChartType.hxx b/chart2/source/model/template/BarChartType.hxx
index 97ffcb3b3aba..15ac210f428f 100644
--- a/chart2/source/model/template/BarChartType.hxx
+++ b/chart2/source/model/template/BarChartType.hxx
@@ -49,7 +49,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new BarChartType( xContext );
+ return static_cast<cppu::OWeakObject *>(new BarChartType( xContext ));
}
protected:
diff --git a/chart2/source/model/template/BubbleChartType.hxx b/chart2/source/model/template/BubbleChartType.hxx
index 8c6015db7ec4..e59799c7e3d1 100644
--- a/chart2/source/model/template/BubbleChartType.hxx
+++ b/chart2/source/model/template/BubbleChartType.hxx
@@ -50,7 +50,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new BubbleChartType( xContext );
+ return static_cast<cppu::OWeakObject *>(new BubbleChartType( xContext ));
}
protected:
diff --git a/chart2/source/model/template/CandleStickChartType.hxx b/chart2/source/model/template/CandleStickChartType.hxx
index ee3c007b4a4d..c1287e21508f 100644
--- a/chart2/source/model/template/CandleStickChartType.hxx
+++ b/chart2/source/model/template/CandleStickChartType.hxx
@@ -49,7 +49,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new CandleStickChartType( xContext );
+ return static_cast<cppu::OWeakObject *>(new CandleStickChartType( xContext ));
}
protected:
diff --git a/chart2/source/model/template/ColumnChartType.hxx b/chart2/source/model/template/ColumnChartType.hxx
index 97e253d6ef16..3725b8f23bd2 100644
--- a/chart2/source/model/template/ColumnChartType.hxx
+++ b/chart2/source/model/template/ColumnChartType.hxx
@@ -49,7 +49,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new ColumnChartType( xContext );
+ return static_cast<cppu::OWeakObject *>(new ColumnChartType( xContext ));
}
protected:
diff --git a/chart2/source/model/template/FilledNetChartType.hxx b/chart2/source/model/template/FilledNetChartType.hxx
index d74e6a2ee240..03ce04877608 100644
--- a/chart2/source/model/template/FilledNetChartType.hxx
+++ b/chart2/source/model/template/FilledNetChartType.hxx
@@ -48,7 +48,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new FilledNetChartType( xContext );
+ return static_cast<cppu::OWeakObject *>(new FilledNetChartType( xContext ));
}
protected:
diff --git a/chart2/source/model/template/GL3DBarChartType.hxx b/chart2/source/model/template/GL3DBarChartType.hxx
index 3a415214fee9..c1f1e426030b 100644
--- a/chart2/source/model/template/GL3DBarChartType.hxx
+++ b/chart2/source/model/template/GL3DBarChartType.hxx
@@ -43,7 +43,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new GL3DBarChartType( xContext );
+ return static_cast<cppu::OWeakObject *>(new GL3DBarChartType( xContext ));
}
protected:
diff --git a/chart2/source/model/template/LineChartType.hxx b/chart2/source/model/template/LineChartType.hxx
index c6428c241025..7a9a147300fc 100644
--- a/chart2/source/model/template/LineChartType.hxx
+++ b/chart2/source/model/template/LineChartType.hxx
@@ -50,7 +50,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new LineChartType( xContext );
+ return static_cast<cppu::OWeakObject *>(new LineChartType( xContext ));
}
protected:
diff --git a/chart2/source/model/template/NetChartType.hxx b/chart2/source/model/template/NetChartType.hxx
index ac75c4c557da..27763a809918 100644
--- a/chart2/source/model/template/NetChartType.hxx
+++ b/chart2/source/model/template/NetChartType.hxx
@@ -76,7 +76,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new NetChartType( xContext );
+ return static_cast<cppu::OWeakObject *>(new NetChartType( xContext ));
}
protected:
diff --git a/chart2/source/model/template/PieChartType.hxx b/chart2/source/model/template/PieChartType.hxx
index c905852b840c..fb842ba254ee 100644
--- a/chart2/source/model/template/PieChartType.hxx
+++ b/chart2/source/model/template/PieChartType.hxx
@@ -50,7 +50,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new PieChartType( xContext );
+ return static_cast<cppu::OWeakObject *>(new PieChartType( xContext ));
}
protected:
diff --git a/chart2/source/model/template/ScatterChartType.hxx b/chart2/source/model/template/ScatterChartType.hxx
index 777afe0ff89c..56cdd780c167 100644
--- a/chart2/source/model/template/ScatterChartType.hxx
+++ b/chart2/source/model/template/ScatterChartType.hxx
@@ -54,7 +54,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
throw(css::uno::Exception)
{
- return (::cppu::OWeakObject *)new ScatterChartType( xContext );
+ return static_cast<cppu::OWeakObject *>(new ScatterChartType( xContext ));
}
protected: