diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-13 14:42:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-14 09:21:39 +0200 |
commit | 868444c803a3ba197068d487d3507089cc1e9afa (patch) | |
tree | 1510bdac1c102d152b444ea582c4870708dc2b45 /xmloff/source | |
parent | f34cc90df9e6e7bc7d58a4ed4be71a63f0ec5ae4 (diff) |
loplugin:passstuffbyref in xmloff
Change-Id: I5995510c5c0686e5e69e8853d81dcba83ae96211
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/chart/SchXMLExport.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/draw/sdxmlimp_impl.hxx | 2 | ||||
-rw-r--r-- | xmloff/source/transform/PersAttrListTContext.hxx | 2 | ||||
-rw-r--r-- | xmloff/source/xforms/XFormsModelContext.hxx | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx index c64ef59e6488..a45784ff2fcf 100644 --- a/xmloff/source/chart/SchXMLExport.cxx +++ b/xmloff/source/chart/SchXMLExport.cxx @@ -155,7 +155,7 @@ public: void exportChart( css::uno::Reference< css::chart::XChartDocument > rChartDoc, bool bIncludeTable ); - rtl::Reference<XMLPropertySetMapper> GetPropertySetMapper() const; + const rtl::Reference<XMLPropertySetMapper>& GetPropertySetMapper() const; void SetChartRangeAddress( const OUString& rAddress ) { msChartAddress = rAddress; } @@ -993,7 +993,7 @@ void SchXMLExportHelper::SetDestinationShellID( const OUString& rShellID ) m_pImpl->maDestShellID = rShellID; } -rtl::Reference< XMLPropertySetMapper > SchXMLExportHelper_Impl::GetPropertySetMapper() const +const rtl::Reference< XMLPropertySetMapper >& SchXMLExportHelper_Impl::GetPropertySetMapper() const { return mxPropertySetMapper; } diff --git a/xmloff/source/draw/sdxmlimp_impl.hxx b/xmloff/source/draw/sdxmlimp_impl.hxx index ccda6f1099db..7250eb6ec250 100644 --- a/xmloff/source/draw/sdxmlimp_impl.hxx +++ b/xmloff/source/draw/sdxmlimp_impl.hxx @@ -260,7 +260,7 @@ public: sal_Int32 GetNewMasterPageCount() const { return mnNewMasterPageCount; } void IncrementNewMasterPageCount() { mnNewMasterPageCount++; } - css::uno::Reference< css::container::XNameAccess > getPageLayouts() const { return mxPageLayouts; } + const css::uno::Reference< css::container::XNameAccess >& getPageLayouts() const { return mxPageLayouts; } bool IsDraw() const { return mbIsDraw; } bool IsImpress() const { return !mbIsDraw; } diff --git a/xmloff/source/transform/PersAttrListTContext.hxx b/xmloff/source/transform/PersAttrListTContext.hxx index e47fb3377491..d93455ff0069 100644 --- a/xmloff/source/transform/PersAttrListTContext.hxx +++ b/xmloff/source/transform/PersAttrListTContext.hxx @@ -102,7 +102,7 @@ public: ::xmloff::token::XMLTokenEnum eAToken, const OUString & rValue ); - css::uno::Reference< css::xml::sax::XAttributeList > + const css::uno::Reference< css::xml::sax::XAttributeList >& GetAttrList() const { return m_xAttrList; } }; diff --git a/xmloff/source/xforms/XFormsModelContext.hxx b/xmloff/source/xforms/XFormsModelContext.hxx index 2ec6bcb0e878..b71baad466c6 100644 --- a/xmloff/source/xforms/XFormsModelContext.hxx +++ b/xmloff/source/xforms/XFormsModelContext.hxx @@ -43,7 +43,7 @@ public: const OUString& rLName ); virtual ~XFormsModelContext(); - css::uno::Reference<css::xforms::XModel2> getModel() { return mxModel;} + const css::uno::Reference<css::xforms::XModel2>& getModel() { return mxModel;} // implement SvXMLImportContext & TokenContext methods: |