summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sax/tools/documenthandleradapter.hxx4
-rw-r--r--sax/source/tools/CachedOutputStream.hxx2
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;
}