diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-23 09:46:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-24 08:35:39 +0200 |
commit | ec98adb2ec71882801a4db031c8e2bcf3075c5a0 (patch) | |
tree | 24c3bb82d9d1ebaaf9ea29289a2a775f6d1ee3c4 /sd/source/ui/app | |
parent | fdb68feeb12362f1d9d8f70d8cae49b2fa004493 (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/app')
-rw-r--r-- | sd/source/ui/app/sdmod2.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/app/sdxfer.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
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; |