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/unoidl/UnoDocumentSettings.cxx | |
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/unoidl/UnoDocumentSettings.cxx')
-rw-r--r-- | sd/source/ui/unoidl/UnoDocumentSettings.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/unoidl/UnoDocumentSettings.cxx b/sd/source/ui/unoidl/UnoDocumentSettings.cxx index 273f5839c146..b41ecc598890 100644 --- a/sd/source/ui/unoidl/UnoDocumentSettings.cxx +++ b/sd/source/ui/unoidl/UnoDocumentSettings.cxx @@ -337,7 +337,7 @@ uno::Sequence<beans::PropertyValue> SdDrawDocument* pDoc = mxModel->GetDoc(); for( size_t i = 0; i < SAL_N_ELEMENTS( aURLPropertyNames ); i++ ) { - XPropertyListRef pList = pDoc->GetPropertyList( static_cast<XPropertyListType>(i) ); + const XPropertyListRef& pList = pDoc->GetPropertyList( static_cast<XPropertyListType>(i) ); bHasEmbed = pList.is() && pList->IsEmbedInDocument(); if( bHasEmbed ) break; @@ -359,7 +359,7 @@ uno::Sequence<beans::PropertyValue> XPropertyListType t = getTypeOfName( aConfigProps[i].Name ); aRet[i] = aConfigProps[i]; if (t != XPropertyListType::Unknown) { - XPropertyListRef pList = pDoc->GetPropertyList( t ); + const XPropertyListRef& pList = pDoc->GetPropertyList( t ); if( !pList.is() || !pList->IsEmbedInDocument() ) continue; // no change ... else |