diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-08 19:39:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-09 07:14:51 +0100 |
commit | 2d40c43e868494abb87b405680f9c5ef460293cc (patch) | |
tree | 80ac9495557fd060fa6d092e42fccf8354c9ff98 /chart2/source/controller | |
parent | 97e47e7b004945d3ac28a9262df371ca2faf1903 (diff) |
loplugin:redundantfcast look for unnecessary temporaries
when calling methods that take a const&
Change-Id: Idf45dfd9fea0de6fae0b1f89550f2f7fc302aa15
Reviewed-on: https://gerrit.libreoffice.org/50970
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/controller')
-rw-r--r-- | chart2/source/controller/drawinglayer/DrawViewWrapper.cxx | 2 | ||||
-rw-r--r-- | chart2/source/controller/main/ChartController.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx b/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx index 9ed6517cf7df..5efd976dcef5 100644 --- a/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx +++ b/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx @@ -72,7 +72,7 @@ SfxObjectShell * lcl_GetParentObjectShell( const uno::Reference< frame::XModel > { SvGlobalName aSfxIdent( SFX_GLOBAL_CLASSID ); pResult = reinterpret_cast< SfxObjectShell * >( - xParentTunnel->getSomething( uno::Sequence< sal_Int8 >( aSfxIdent.GetByteSequence() ) ) ); + xParentTunnel->getSomething( aSfxIdent.GetByteSequence() ) ); } } } diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index 8ad8cb32ce3b..da8d9db101e9 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -1537,7 +1537,7 @@ void ChartController::impl_initializeAccessible( const uno::Reference< lang::XIn { uno::Sequence< uno::Any > aArguments(5); aArguments[0] <<= uno::Reference<view::XSelectionSupplier>(this); - aArguments[1] <<= uno::Reference<frame::XModel>(getModel()); + aArguments[1] <<= getModel(); aArguments[2] <<= m_xChartView; uno::Reference< XAccessible > xParent; { |