[Libreoffice-commits] core.git: 2 commits - chart2/source
Stephan Bergmann
sbergman at redhat.com
Sun Jul 17 19:59:09 UTC 2016
chart2/source/controller/inc/ChartController.hxx | 2 +-
chart2/source/controller/main/ChartController_Window.cxx | 2 +-
chart2/source/controller/uitest/uiobject.cxx | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 8babcb7e669ce2f752945c1f89647b759ec568d3
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Sun Jul 17 21:58:35 2016 +0200
loplugin:staticcall
Change-Id: I4ec0585bec93c7bc79a31c699df7d68b955eef56
diff --git a/chart2/source/controller/uitest/uiobject.cxx b/chart2/source/controller/uitest/uiobject.cxx
index 51e33bf..f4e6644 100644
--- a/chart2/source/controller/uitest/uiobject.cxx
+++ b/chart2/source/controller/uitest/uiobject.cxx
@@ -172,7 +172,7 @@ std::set<OUString> ChartWindowUIObject::get_children() const
css::uno::Reference<css::uno::XInterface> xChartView = pController->getChartView();
chart::ExplicitValueProvider* pValueProvider = chart::ExplicitValueProvider::getExplicitValueProvider( xChartView );
chart::ObjectHierarchy aHierarchy(xChartDoc, pValueProvider, true);
- chart::ObjectIdentifier aIdentifier = aHierarchy.getRootNodeOID();
+ chart::ObjectIdentifier aIdentifier = chart::ObjectHierarchy::getRootNodeOID();
aChildren.insert(aIdentifier.getObjectCID());
recursiveAdd(aIdentifier, aChildren, aHierarchy);
commit 8569cf1d91c68a46c904314861eb35fda9e219ce
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Sun Jul 17 21:57:33 2016 +0200
loplugin:passstuffbyref
Change-Id: I0114bd98b92b9810d7d829ddce8461a2844e0506
diff --git a/chart2/source/controller/inc/ChartController.hxx b/chart2/source/controller/inc/ChartController.hxx
index 00833b4..157e31e 100644
--- a/chart2/source/controller/inc/ChartController.hxx
+++ b/chart2/source/controller/inc/ChartController.hxx
@@ -378,7 +378,7 @@ public:
DECL_LINK_TYPED( NotifyUndoActionHdl, SdrUndoAction*, void );
- css::uno::Reference<css::uno::XInterface> getChartView();
+ css::uno::Reference<css::uno::XInterface> const & getChartView();
private:
DrawViewWrapper* GetDrawViewWrapper();
diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx
index 944e876..dfe6811 100644
--- a/chart2/source/controller/main/ChartController_Window.cxx
+++ b/chart2/source/controller/main/ChartController_Window.cxx
@@ -1969,7 +1969,7 @@ void ChartController::impl_SetMousePointer( const MouseEvent & rEvent )
m_pChartWindow->SetPointer( Pointer( PointerStyle::Arrow ));
}
-css::uno::Reference<css::uno::XInterface> ChartController::getChartView()
+css::uno::Reference<css::uno::XInterface> const & ChartController::getChartView()
{
return m_xChartView;
}
More information about the Libreoffice-commits
mailing list