From 746289bf97ee6eeaf8a1df6b040dd9ae29bab0ce Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 13 Apr 2016 11:25:24 +0200 Subject: [PATCH] loplugin:passstuffbyref in sax Change-Id: I95f0a17b9b8bab592a60f6b5223b4668c5355275 --- include/sax/tools/documenthandleradapter.hxx | 4 ++-- sax/source/tools/CachedOutputStream.hxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/sax/tools/documenthandleradapter.hxx b/include/sax/tools/documenthandleradapter.hxx index b36a49705a09..9f8f89861e48 100644 --- a/include/sax/tools/documenthandleradapter.hxx +++ b/include/sax/tools/documenthandleradapter.hxx @@ -93,7 +93,7 @@ namespace sax { m_handler = delegate; } - css::uno::Reference< css::xml::sax::XDocumentHandler > SAL_CALL + const css::uno::Reference< css::xml::sax::XDocumentHandler >& SAL_CALL getDelegate() { return m_handler; @@ -215,7 +215,7 @@ namespace sax { m_handler = delegate; } - css::uno::Reference< css::xml::sax::XExtendedDocumentHandler > SAL_CALL + const css::uno::Reference< css::xml::sax::XExtendedDocumentHandler >& SAL_CALL getDelegate() { return m_handler; diff --git a/sax/source/tools/CachedOutputStream.hxx b/sax/source/tools/CachedOutputStream.hxx index f32693e70f92..b93abcb63740 100644 --- a/sax/source/tools/CachedOutputStream.hxx +++ b/sax/source/tools/CachedOutputStream.hxx @@ -51,7 +51,7 @@ public: {} ~CachedOutputStream() {} - css::uno::Reference< css::io::XOutputStream > getOutputStream() const + const css::uno::Reference< css::io::XOutputStream >& getOutputStream() const { return mxOutputStream; }