summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 14:42:54 +0200
committerNoel Grandin <noel@peralex.com>2016-04-14 09:21:39 +0200
commit868444c803a3ba197068d487d3507089cc1e9afa (patch)
tree1510bdac1c102d152b444ea582c4870708dc2b45 /xmloff
parentf34cc90df9e6e7bc7d58a4ed4be71a63f0ec5ae4 (diff)
loplugin:passstuffbyref in xmloff
Change-Id: I5995510c5c0686e5e69e8853d81dcba83ae96211
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/inc/txtfldi.hxx2
-rw-r--r--xmloff/inc/txtvfldi.hxx2
-rw-r--r--xmloff/source/chart/SchXMLExport.cxx4
-rw-r--r--xmloff/source/draw/sdxmlimp_impl.hxx2
-rw-r--r--xmloff/source/transform/PersAttrListTContext.hxx2
-rw-r--r--xmloff/source/xforms/XFormsModelContext.hxx2
6 files changed, 7 insertions, 7 deletions
diff --git a/xmloff/inc/txtfldi.hxx b/xmloff/inc/txtfldi.hxx
index 4b3554103e0c..670e6d6c356c 100644
--- a/xmloff/inc/txtfldi.hxx
+++ b/xmloff/inc/txtfldi.hxx
@@ -157,7 +157,7 @@ protected:
/// get helper
inline XMLTextImportHelper& GetImportHelper() { return rTextImportHelper; }
- inline OUString GetServiceName() { return sServiceName; }
+ const OUString& GetServiceName() { return sServiceName; }
inline void SetServiceName(const OUString& sStr) { sServiceName = sStr; }
OUString GetContent();
diff --git a/xmloff/inc/txtvfldi.hxx b/xmloff/inc/txtvfldi.hxx
index 1d3807980b4c..a92f6bc53980 100644
--- a/xmloff/inc/txtvfldi.hxx
+++ b/xmloff/inc/txtvfldi.hxx
@@ -188,7 +188,7 @@ protected:
css::beans::XPropertySet> & xPropertySet) override;
// various accessor methods:
- inline OUString GetName() { return sName; }
+ const OUString& GetName() { return sName; }
inline bool IsStringValue() { return aValueHelper.IsStringValue();}
};
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: