summaryrefslogtreecommitdiff
path: root/basic/source/inc/buffer.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'basic/source/inc/buffer.hxx')
-rw-r--r--basic/source/inc/buffer.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/inc/buffer.hxx b/basic/source/inc/buffer.hxx
index 233d94fec177..3115a01a6c98 100644
--- a/basic/source/inc/buffer.hxx
+++ b/basic/source/inc/buffer.hxx
@@ -45,8 +45,8 @@ public:
void operator += (sal_Int32); // save integer
std::vector<sal_uInt8>&& GetBuffer() { return std::move(m_aBuf); } // pass ownership
sal_uInt32 GetSize() const { return m_aBuf.size(); }
- ErrCode GetErrCode() const { return m_aErrCode; }
- OUString GetErrMessage() const { return m_sErrMsg; }
+ const ErrCode & GetErrCode() const { return m_aErrCode; }
+ const OUString & GetErrMessage() const { return m_sErrMsg; }
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */