diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-23 09:46:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-24 08:35:56 +0200 |
commit | 4e51d68dc3595dae8b2519e0a023c9b1ca13a8fd (patch) | |
tree | a73bff3750fae258b3b4321cc65e68f6ff8ed0c7 /sfx2/source/view/lokcharthelper.cxx | |
parent | ec98adb2ec71882801a4db031c8e2bcf3075c5a0 (diff) |
clang-tidy performance-unnecessary-copy-init in sfx2..svtools
Change-Id: I1e92472b4aaeca1eb1372bd18d10cc9e0766dc39
Reviewed-on: https://gerrit.libreoffice.org/62251
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/view/lokcharthelper.cxx')
-rw-r--r-- | sfx2/source/view/lokcharthelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/view/lokcharthelper.cxx b/sfx2/source/view/lokcharthelper.cxx index 5369b803a692..04b433c66677 100644 --- a/sfx2/source/view/lokcharthelper.cxx +++ b/sfx2/source/view/lokcharthelper.cxx @@ -52,7 +52,7 @@ css::uno::Reference<css::frame::XController>& LokChartHelper::GetXController() SfxInPlaceClient* pIPClient = mpViewShell->GetIPClient(); if (pIPClient) { - css::uno::Reference< ::css::embed::XEmbeddedObject > xEmbObj = pIPClient->GetObject(); + const css::uno::Reference< ::css::embed::XEmbeddedObject >& xEmbObj = pIPClient->GetObject(); if( xEmbObj.is() ) { ::css::uno::Reference< ::css::chart2::XChartDocument > xChart( xEmbObj->getComponent(), uno::UNO_QUERY ); @@ -138,7 +138,7 @@ tools::Rectangle LokChartHelper::GetChartBoundingBox() { // In all cases, the following code fragment // returns the chart bounding box in twips. - MapMode aCWMapMode = pWindow->GetMapMode(); + const MapMode& aCWMapMode = pWindow->GetMapMode(); double fXScale( aCWMapMode.GetScaleX() ); double fYScale( aCWMapMode.GetScaleY() ); Point aOffset = pWindow->GetOffsetPixelFrom(*pRootWin); |