From ec98adb2ec71882801a4db031c8e2bcf3075c5a0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 23 Oct 2018 09:46:31 +0200 Subject: clang-tidy performance-unnecessary-copy-init in sd Change-Id: I4a494aebdae9b9cba3794e5eee1f3a29eb3ec838 Reviewed-on: https://gerrit.libreoffice.org/62250 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/table/TableDesignPane.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sd/source/ui/table') diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx index 3c1a0ed4e7a5..386986cea857 100644 --- a/sd/source/ui/table/TableDesignPane.cxx +++ b/sd/source/ui/table/TableDesignPane.cxx @@ -171,7 +171,7 @@ void TableDesignWidget::ApplyStyle() SfxRequest aReq( SID_TABLE_STYLE, SfxCallMode::SYNCHRON, SfxGetpApp()->GetPool() ); aReq.AppendItem( SfxStringItem( SID_TABLE_STYLE, sStyleName ) ); - rtl::Reference< sdr::SelectionController > xController( pView->getSelectionController() ); + const rtl::Reference< sdr::SelectionController >& xController( pView->getSelectionController() ); if( xController.is() ) xController->Execute( aReq ); @@ -223,7 +223,7 @@ void TableDesignWidget::ApplyOptions() SdrView* pView = mrBase.GetDrawView(); if( pView ) { - rtl::Reference< sdr::SelectionController > xController( pView->getSelectionController() ); + const rtl::Reference< sdr::SelectionController >& xController( pView->getSelectionController() ); if( xController.is() ) { xController->Execute( aReq ); -- cgit