summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/unoshap4.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-23 09:47:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-24 08:36:11 +0200
commit2629aac31142449312f77c5843ea209cc810acb4 (patch)
tree2d8e11d8b346b50a48f80cf1c28fed6962831730 /svx/source/unodraw/unoshap4.cxx
parent4e51d68dc3595dae8b2519e0a023c9b1ca13a8fd (diff)
clang-tidy performance-unnecessary-copy-init in svx
Change-Id: I27f4dd0cb08f9b62496a1c51eed732a678e1c2e5 Reviewed-on: https://gerrit.libreoffice.org/62252 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/unodraw/unoshap4.cxx')
-rw-r--r--svx/source/unodraw/unoshap4.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/unodraw/unoshap4.cxx b/svx/source/unodraw/unoshap4.cxx
index 0e1300884c8d..459cd45101c6 100644
--- a/svx/source/unodraw/unoshap4.cxx
+++ b/svx/source/unodraw/unoshap4.cxx
@@ -160,7 +160,7 @@ bool SvxOle2Shape::setPropertyValueImpl( const OUString& rName, const SfxItemPro
if( pOle )
{
GraphicObject aGrafObj( xGraphic );
- const Graphic aGraphic( aGrafObj.GetGraphic() );
+ const Graphic& aGraphic( aGrafObj.GetGraphic() );
pOle->SetGraphicToObj( aGraphic );
}
return true;
@@ -540,7 +540,7 @@ const SvGlobalName SvxOle2Shape::GetClassName_Impl(OUString& rHexCLSID)
if (rHexCLSID.isEmpty())
{
- uno::Reference < embed::XEmbeddedObject > xObj( pOle2Obj->GetObjRef() );
+ const uno::Reference < embed::XEmbeddedObject >& xObj( pOle2Obj->GetObjRef() );
if ( xObj.is() )
{
aClassName = SvGlobalName( xObj->getClassID() );