From dc0d98590f07c7dae4504b7ed0c0127794f032d8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 11 Apr 2016 16:05:03 +0200 Subject: clang-tidy performance-unnecessary-value-param in xmloff Change-Id: I8e6d8e66cdab2e50ee10882e139be29c14ce50f6 --- xmloff/inc/PropertySetMerger.hxx | 4 ++-- xmloff/inc/StyleMap.hxx | 2 +- xmloff/inc/XMLChartPropertySetMapper.hxx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'xmloff/inc') diff --git a/xmloff/inc/PropertySetMerger.hxx b/xmloff/inc/PropertySetMerger.hxx index 7a711d3ebe58..22ec387fa0b9 100644 --- a/xmloff/inc/PropertySetMerger.hxx +++ b/xmloff/inc/PropertySetMerger.hxx @@ -24,8 +24,8 @@ extern css::uno::Reference< css::beans::XPropertySet > PropertySetMerger_CreateInstance( - css::uno::Reference< css::beans::XPropertySet > rPropSet1, - css::uno::Reference< css::beans::XPropertySet > rPropSet2 ) throw(); + const css::uno::Reference< css::beans::XPropertySet >& rPropSet1, + const css::uno::Reference< css::beans::XPropertySet >& rPropSet2 ) throw(); #endif diff --git a/xmloff/inc/StyleMap.hxx b/xmloff/inc/StyleMap.hxx index 4d838abc2683..d11447d6ab0a 100644 --- a/xmloff/inc/StyleMap.hxx +++ b/xmloff/inc/StyleMap.hxx @@ -75,7 +75,7 @@ public: static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw(); static StyleMap* getImplementation( - css::uno::Reference< css::uno::XInterface > ) throw(); + const css::uno::Reference< css::uno::XInterface >& ) throw(); // XUnoTunnel virtual sal_Int64 SAL_CALL getSomething( diff --git a/xmloff/inc/XMLChartPropertySetMapper.hxx b/xmloff/inc/XMLChartPropertySetMapper.hxx index 819865b5bf85..cb8dcd5a9222 100644 --- a/xmloff/inc/XMLChartPropertySetMapper.hxx +++ b/xmloff/inc/XMLChartPropertySetMapper.hxx @@ -52,7 +52,7 @@ protected: virtual void ContextFilter( bool bEnableFoFontFamily, ::std::vector< XMLPropertyState >& rProperties, - css::uno::Reference rPropSet ) const override; + const css::uno::Reference& rPropSet ) const override; private: /// this method is called for every item that has the MID_FLAG_ELEMENT_EXPORT flag set @@ -74,7 +74,7 @@ public: SvXMLExport& rExport ); virtual ~XMLChartExportPropertyMapper(); - void setChartDoc( css::uno::Reference< css::chart2::XChartDocument > xChartDoc ); + void setChartDoc( const css::uno::Reference< css::chart2::XChartDocument >& xChartDoc ); }; class XMLChartImportPropertyMapper : public SvXMLImportPropertyMapper -- cgit