From a2751c0795cdac9d78f8919aab319a418b6e0bbc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 15 Nov 2018 12:23:40 +0200 Subject: loplugin:staticmethods improvement Change-Id: I8889ce8a7d2309b54454cfe4c6421282e1c6e755 Reviewed-on: https://gerrit.libreoffice.org/63434 Tested-by: Jenkins Reviewed-by: Noel Grandin --- chart2/source/view/inc/ShapeFactory.hxx | 2 +- chart2/source/view/main/ChartView.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'chart2') diff --git a/chart2/source/view/inc/ShapeFactory.hxx b/chart2/source/view/inc/ShapeFactory.hxx index 521bf62985f9..70ca02217f6c 100644 --- a/chart2/source/view/inc/ShapeFactory.hxx +++ b/chart2/source/view/inc/ShapeFactory.hxx @@ -271,7 +271,7 @@ public: getOrCreateChartRootShape( const css::uno::Reference< css::drawing::XDrawPage>& xPage ); - void setPageSize(const css::uno::Reference& xChartShapes, + static void setPageSize(const css::uno::Reference& xChartShapes, const css::awt::Size& rSize); static css::uno::Reference< css::drawing::XShapes > diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index 56a439d48e37..02ad8a90720c 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -2508,7 +2508,7 @@ void ChartView::createShapes() { OSL_FAIL("could not set page size correctly"); } - pShapeFactory->setPageSize(mxRootShape, aPageSize); + ShapeFactory::setPageSize(mxRootShape, aPageSize); createShapes2D(aPageSize); -- cgit