summaryrefslogtreecommitdiff
path: root/include/basic/sbstar.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-26 08:32:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-26 19:56:02 +0100
commit2a421b26c0100b35d28b86a5d79afa15af9580dd (patch)
tree064240373eeec9600054ebb8493bb0e1fbd8576d /include/basic/sbstar.hxx
parent2bf1cc7372088ec31ac5f0fb60de57feda59d3b7 (diff)
loplugin:passstuffbyref improved return in basic,framework
Change-Id: Ib19836febb59f4e2bb07dc874cfc6baabc653237 Reviewed-on: https://gerrit.libreoffice.org/47065 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/basic/sbstar.hxx')
-rw-r--r--include/basic/sbstar.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/basic/sbstar.hxx b/include/basic/sbstar.hxx
index 071025d52fa3..8774f524c6c0 100644
--- a/include/basic/sbstar.hxx
+++ b/include/basic/sbstar.hxx
@@ -130,12 +130,12 @@ public:
// Specific to error handler
static void MakeErrorText( ErrCode, const OUString& aMsg );
static const OUString& GetErrorText();
- static ErrCode GetErrorCode();
+ static ErrCode const & GetErrorCode();
static sal_uInt16 GetVBErrorCode( ErrCode nError );
static ErrCode GetSfxFromVBError( sal_uInt16 nError );
bool IsBreak() const { return bBreak; }
- static Link<StarBASIC*,bool> GetGlobalErrorHdl();
+ static Link<StarBASIC*,bool> const & GetGlobalErrorHdl();
static void SetGlobalErrorHdl( const Link<StarBASIC*,bool>& rNewHdl );
static void SetGlobalBreakHdl( const Link<StarBASIC*,BasicDebugFlags>& rNewHdl );