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/app/sdmod2.cxx | 2 +- sd/source/ui/app/sdxfer.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sd/source/ui/app') diff --git a/sd/source/ui/app/sdmod2.cxx b/sd/source/ui/app/sdmod2.cxx index 45af870b9679..979b46c1c3da 100644 --- a/sd/source/ui/app/sdmod2.cxx +++ b/sd/source/ui/app/sdmod2.cxx @@ -335,7 +335,7 @@ IMPL_LINK(SdModule, CalcFieldValueHdl, EditFieldInfo*, pInfo, void) break; } - OUString aURL = pURLField->GetURL(); + const OUString& aURL = pURLField->GetURL(); svtools::ColorConfig aConfig; svtools::ColorConfigEntry eEntry = diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx index 2a7dadaf9118..4562df261e59 100644 --- a/sd/source/ui/app/sdxfer.cxx +++ b/sd/source/ui/app/sdxfer.cxx @@ -179,7 +179,7 @@ void SdTransferable::CreateObjectReplacement( SdrObject* pObj ) if (pUnoCtrl && SdrInventor::FmForm == pUnoCtrl->GetObjInventor()) { - Reference< css::awt::XControlModel > xControlModel( pUnoCtrl->GetUnoControlModel() ); + const Reference< css::awt::XControlModel >& xControlModel( pUnoCtrl->GetUnoControlModel() ); if( !xControlModel.is() ) return; -- cgit