summaryrefslogtreecommitdiffstats
path: root/include/basic
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
parentmark angle value in picturepage.ui as untranslatable (diff)
downloadcore-2a421b26c0100b35d28b86a5d79afa15af9580dd.tar.gz
core-2a421b26c0100b35d28b86a5d79afa15af9580dd.zip
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')
-rw-r--r--include/basic/basmgr.hxx2
-rw-r--r--include/basic/sbstar.hxx4
-rw-r--r--include/basic/sbxcore.hxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/include/basic/basmgr.hxx b/include/basic/basmgr.hxx
index 5450228d4493..5e70e6ea138b 100644
--- a/include/basic/basmgr.hxx
+++ b/include/basic/basmgr.hxx
@@ -55,7 +55,7 @@ public:
BasicError( const BasicError& rErr );
BasicError( ErrCode nId, BasicErrorReason nR );
- ErrCode GetErrorId() const { return nErrorId; }
+ ErrCode const & GetErrorId() const { return nErrorId; }
};
class ErrorManager;
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 );
diff --git a/include/basic/sbxcore.hxx b/include/basic/sbxcore.hxx
index 3be787bf0d7f..e0d90d367885 100644
--- a/include/basic/sbxcore.hxx
+++ b/include/basic/sbxcore.hxx
@@ -81,7 +81,7 @@ public:
bool Store( SvStream& );
virtual bool LoadCompleted();
- static ErrCode GetError();
+ static ErrCode const & GetError();
static void SetError( ErrCode );
static bool IsError();
static void ResetError();