From 2a1fb4401da16f6a18c0bd05fe4b460a3048f9b5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 22 Dec 2017 14:23:16 +0200 Subject: loplugin:passstuffbyref improved returns improve the detection of stuff we can return by const &, instead of by copying Change-Id: I479ae89d0413125a8295cc3cddbc0017ed61ed69 Reviewed-on: https://gerrit.libreoffice.org/46915 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/tools/stream.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/tools/stream.hxx') diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx index abf25b1e4a70..640dca026598 100644 --- a/include/tools/stream.hxx +++ b/include/tools/stream.hxx @@ -203,7 +203,7 @@ public: SvLockBytes* GetLockBytes() const { return m_xLockBytes.get(); } ErrCode GetError() const { return m_nError.IgnoreWarning(); } - ErrCode GetErrorCode() const { return m_nError; } + ErrCode const & GetErrorCode() const { return m_nError; } void SetError( ErrCode nErrorCode ); virtual void ResetError(); -- cgit