summaryrefslogtreecommitdiff
path: root/sd/source/ui/table
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-23 09:46:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-24 08:35:39 +0200
commitec98adb2ec71882801a4db031c8e2bcf3075c5a0 (patch)
tree24c3bb82d9d1ebaaf9ea29289a2a775f6d1ee3c4 /sd/source/ui/table
parentfdb68feeb12362f1d9d8f70d8cae49b2fa004493 (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/table')
-rw-r--r--sd/source/ui/table/TableDesignPane.cxx4
1 files changed, 2 insertions, 2 deletions
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 );