summaryrefslogtreecommitdiff
path: root/reportdesign/source/filter/xml
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 14:47:14 +0200
committerNoel Grandin <noel@peralex.com>2016-04-14 09:21:40 +0200
commit492f2ff0053a11aa6e49a18a9a8caf87edb68436 (patch)
treef72775a479cee7d6731f1a7c3834eb4f59a6dc37 /reportdesign/source/filter/xml
parent029a6abf615acdf5d386fc4e56fe35ae1c5403b9 (diff)
loplugin:passstuffbyref in reportdesign
Change-Id: I6e024c3043e1fa9f618e96088581ade3c3a00c3c
Diffstat (limited to 'reportdesign/source/filter/xml')
-rw-r--r--reportdesign/source/filter/xml/xmlExport.hxx4
-rw-r--r--reportdesign/source/filter/xml/xmlTable.hxx2
-rw-r--r--reportdesign/source/filter/xml/xmlfilter.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlfilter.hxx10
4 files changed, 9 insertions, 9 deletions
diff --git a/reportdesign/source/filter/xml/xmlExport.hxx b/reportdesign/source/filter/xml/xmlExport.hxx
index c2942d7f225d..534fabe636e0 100644
--- a/reportdesign/source/filter/xml/xmlExport.hxx
+++ b/reportdesign/source/filter/xml/xmlExport.hxx
@@ -167,9 +167,9 @@ public:
// XExporter
virtual void SAL_CALL setSourceDocument( const css::uno::Reference< css::lang::XComponent >& xDoc ) throw(css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
- inline Reference<XReportDefinition> getReportDefinition() const { return m_xReportDefinition; }
+ const Reference<XReportDefinition>& getReportDefinition() const { return m_xReportDefinition; }
- rtl::Reference < XMLPropertySetMapper > GetCellStylePropertyMapper() const { return m_xCellStylesPropertySetMapper;}
+ const rtl::Reference < XMLPropertySetMapper >& GetCellStylePropertyMapper() const { return m_xCellStylesPropertySetMapper;}
};
/** Exports only settings
diff --git a/reportdesign/source/filter/xml/xmlTable.hxx b/reportdesign/source/filter/xml/xmlTable.hxx
index 596148d05d95..4139d96ff877 100644
--- a/reportdesign/source/filter/xml/xmlTable.hxx
+++ b/reportdesign/source/filter/xml/xmlTable.hxx
@@ -79,7 +79,7 @@ namespace rptxml
void addCell(const css::uno::Reference< css::report::XReportComponent>& _xElement);
- inline css::uno::Reference< css::report::XSection > getSection() const { return m_xSection; }
+ const css::uno::Reference< css::report::XSection >& getSection() const { return m_xSection; }
};
} // namespace rptxml
diff --git a/reportdesign/source/filter/xml/xmlfilter.cxx b/reportdesign/source/filter/xml/xmlfilter.cxx
index 5b7c20501b4c..57a2c22ec7ae 100644
--- a/reportdesign/source/filter/xml/xmlfilter.cxx
+++ b/reportdesign/source/filter/xml/xmlfilter.cxx
@@ -961,7 +961,7 @@ void ORptFilter::FinishStyles()
GetStyles()->FinishStyles( true );
}
-OUString ORptFilter::convertFormula(const OUString& _sFormula)
+const OUString& ORptFilter::convertFormula(const OUString& _sFormula)
{
return _sFormula;
}
diff --git a/reportdesign/source/filter/xml/xmlfilter.hxx b/reportdesign/source/filter/xml/xmlfilter.hxx
index 24a47dd8bba4..4ab619bfb79b 100644
--- a/reportdesign/source/filter/xml/xmlfilter.hxx
+++ b/reportdesign/source/filter/xml/xmlfilter.hxx
@@ -120,7 +120,7 @@ public:
static css::uno::Reference< css::uno::XInterface > SAL_CALL
create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
- inline Reference<XReportDefinition> getReportDefinition() const {
+ const Reference<XReportDefinition>& getReportDefinition() const {
return m_xReportDefinition;
}
void FinishStyles();
@@ -144,16 +144,16 @@ public:
const SvXMLTokenMap& GetColumnTokenMap() const;
const SvXMLTokenMap& GetCellElemTokenMap() const;
- inline rtl::Reference < XMLPropertySetMapper > GetCellStylesPropertySetMapper() const {
+ const rtl::Reference< XMLPropertySetMapper >& GetCellStylesPropertySetMapper() const {
return m_xCellStylesPropertySetMapper;
}
- inline rtl::Reference < XMLPropertySetMapper > GetColumnStylesPropertySetMapper() const {
+ const rtl::Reference< XMLPropertySetMapper >& GetColumnStylesPropertySetMapper() const {
return m_xColumnStylesPropertySetMapper;
}
- inline rtl::Reference < XMLPropertySetMapper > GetRowStylesPropertySetMapper() const {
+ const rtl::Reference< XMLPropertySetMapper >& GetRowStylesPropertySetMapper() const {
return m_xRowStylesPropertySetMapper;
}
- static OUString convertFormula(const OUString& _sFormula);
+ static const OUString& convertFormula(const OUString& _sFormula);
/** inserts a new function
*
* \param _xFunction