From 9f877f677346968774d4366f105114fe7f36dd69 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 11 Apr 2016 09:23:29 +0200 Subject: clang-tidy performance-unnecessary-value-param in oox Change-Id: I1ac86906ea21c00f8d77834c94583be7d9e9974e --- sd/source/filter/eppt/pptx-epptooxml.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sd/source') diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx index ad0c30fd226e..014ea00c74c9 100644 --- a/sd/source/filter/eppt/pptx-epptooxml.cxx +++ b/sd/source/filter/eppt/pptx-epptooxml.cxx @@ -117,9 +117,9 @@ public: PowerPointShapeExport( FSHelperPtr pFS, ShapeHashMap* pShapeMap, PowerPointExport* pFB ); void SetMaster( bool bMaster ); void SetPageType( PageType ePageType ); - ShapeExport& WriteNonVisualProperties( Reference< XShape > xShape ) override; - ShapeExport& WriteTextShape( Reference< XShape > xShape ) override; - ShapeExport& WriteUnknownShape( Reference< XShape > xShape ) override; + ShapeExport& WriteNonVisualProperties( const Reference< XShape >& xShape ) override; + ShapeExport& WriteTextShape( const Reference< XShape >& xShape ) override; + ShapeExport& WriteUnknownShape( const Reference< XShape >& xShape ) override; ShapeExport& WritePlaceholderShape( Reference< XShape > xShape, PlaceholderType ePlaceholder ); ShapeExport& WritePageShape( Reference< XShape > xShape, PageType ePageType, bool bPresObj ); @@ -232,14 +232,14 @@ void PowerPointShapeExport::SetPageType( PageType ePageType ) mePageType = ePageType; } -ShapeExport& PowerPointShapeExport::WriteNonVisualProperties( Reference< XShape > ) +ShapeExport& PowerPointShapeExport::WriteNonVisualProperties( const Reference< XShape >& ) { GetFS()->singleElementNS( XML_p, XML_nvPr, FSEND ); return *this; } -ShapeExport& PowerPointShapeExport::WriteTextShape( Reference< XShape > xShape ) +ShapeExport& PowerPointShapeExport::WriteTextShape( const Reference< XShape >& xShape ) { OUString sShapeType = xShape->getShapeType(); @@ -290,7 +290,7 @@ ShapeExport& PowerPointShapeExport::WriteTextShape( Reference< XShape > xShape ) return *this; } -ShapeExport& PowerPointShapeExport::WriteUnknownShape( Reference< XShape > xShape ) +ShapeExport& PowerPointShapeExport::WriteUnknownShape( const Reference< XShape >& xShape ) { OUString sShapeType = xShape->getShapeType(); -- cgit