diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-13 14:47:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-14 09:21:40 +0200 |
commit | 492f2ff0053a11aa6e49a18a9a8caf87edb68436 (patch) | |
tree | f72775a479cee7d6731f1a7c3834eb4f59a6dc37 /reportdesign/inc | |
parent | 029a6abf615acdf5d386fc4e56fe35ae1c5403b9 (diff) |
loplugin:passstuffbyref in reportdesign
Change-Id: I6e024c3043e1fa9f618e96088581ade3c3a00c3c
Diffstat (limited to 'reportdesign/inc')
-rw-r--r-- | reportdesign/inc/RptObject.hxx | 4 | ||||
-rw-r--r-- | reportdesign/inc/RptPage.hxx | 2 | ||||
-rw-r--r-- | reportdesign/inc/UndoActions.hxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/reportdesign/inc/RptObject.hxx b/reportdesign/inc/RptObject.hxx index f2ddca7fcced..6552ac81169f 100644 --- a/reportdesign/inc/RptObject.hxx +++ b/reportdesign/inc/RptObject.hxx @@ -109,10 +109,10 @@ public: bool supportsService( const OUString& _sServiceName ) const; - css::uno::Reference< css::report::XReportComponent> getReportComponent() const { return m_xReportComponent;} + const css::uno::Reference< css::report::XReportComponent>& getReportComponent() const { return m_xReportComponent;} virtual css::uno::Reference< css::beans::XPropertySet> getAwtComponent(); css::uno::Reference< css::report::XSection> getSection() const; - inline const OUString getServiceName() const { return m_sComponentName; } + const OUString& getServiceName() const { return m_sComponentName; } /** releases the reference to our UNO shape (m_xKeepShapeAlive) */ diff --git a/reportdesign/inc/RptPage.hxx b/reportdesign/inc/RptPage.hxx index 5307ba3b6317..352a95ba0a92 100644 --- a/reportdesign/inc/RptPage.hxx +++ b/reportdesign/inc/RptPage.hxx @@ -83,7 +83,7 @@ public: */ void insertObject(const css::uno::Reference< css::report::XReportComponent >& _xObject); - css::uno::Reference< css::report::XSection > getSection() const { return m_xSection;} + const css::uno::Reference< css::report::XSection >& getSection() const { return m_xSection;} }; } #endif // INCLUDED_REPORTDESIGN_INC_RPTPAGE_HXX diff --git a/reportdesign/inc/UndoActions.hxx b/reportdesign/inc/UndoActions.hxx index 89e667d2f31a..b9728febec95 100644 --- a/reportdesign/inc/UndoActions.hxx +++ b/reportdesign/inc/UndoActions.hxx @@ -70,7 +70,7 @@ namespace rptui } inline css::uno::Reference< css::report::XSection > getHeader() { return m_xGroup->getHeader(); } inline css::uno::Reference< css::report::XSection > getFooter() { return m_xGroup->getFooter(); } - inline css::uno::Reference< css::report::XGroup > getGroup() { return m_xGroup; } + const css::uno::Reference< css::report::XGroup >& getGroup() { return m_xGroup; } inline bool getHeaderOn() { return m_xGroup->getHeaderOn(); } inline bool getFooterOn() { return m_xGroup->getFooterOn(); } |