diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-13 09:32:53 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-13 13:27:51 +0200 |
commit | 311bc1fc8b39d7f2168a04437034fb5b29c2c8b2 (patch) | |
tree | 6fc2f7582e7a4f6f9a3cff1153e0d2c4633c26fe /include/basic | |
parent | 2d72addff24ddab4842e2660062a58ccfd9cd0d3 (diff) |
loplugin:passstuffbyref in basic
Change-Id: Ie93b33502325f00ba95ab168a445a347148f9edd
Diffstat (limited to 'include/basic')
-rw-r--r-- | include/basic/basmgr.hxx | 4 | ||||
-rw-r--r-- | include/basic/sbmod.hxx | 2 | ||||
-rw-r--r-- | include/basic/sbstar.hxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/basic/basmgr.hxx b/include/basic/basmgr.hxx index 8b65beff4e27..9f493873f930 100644 --- a/include/basic/basmgr.hxx +++ b/include/basic/basmgr.hxx @@ -147,9 +147,9 @@ public: static void LegacyDeleteBasicManager( BasicManager*& _rpManager ); void SetStorageName( const OUString& rName ) { maStorageName = rName; } - OUString GetStorageName() const { return maStorageName; } + const OUString& GetStorageName() const { return maStorageName; } void SetName( const OUString& rName ) { aName = rName; } - OUString GetName() const { return aName; } + const OUString& GetName() const { return aName; } sal_uInt16 GetLibCount() const; diff --git a/include/basic/sbmod.hxx b/include/basic/sbmod.hxx index dc07ba7cf2c1..23ef22009671 100644 --- a/include/basic/sbmod.hxx +++ b/include/basic/sbmod.hxx @@ -131,7 +131,7 @@ public: css::uno::Reference< css::script::XInvocation > GetUnoModule(); bool createCOMWrapperForIface( css::uno::Any& o_rRetAny, SbClassModuleObject* pProxyClassModuleObject ); void GetCodeCompleteDataFromParse(CodeCompleteDataCache& aCache); - SbxArrayRef GetMethods() { return pMethods;} + const SbxArrayRef& GetMethods() { return pMethods;} static OUString GetKeywordCase( const OUString& sKeyword ); }; diff --git a/include/basic/sbstar.hxx b/include/basic/sbstar.hxx index a0e23453ba8a..1fda1b5310a3 100644 --- a/include/basic/sbstar.hxx +++ b/include/basic/sbstar.hxx @@ -152,7 +152,7 @@ public: void SetVBAEnabled( bool bEnabled ); bool isVBAEnabled(); - SbxObjectRef getRTL() { return pRtl; } + const SbxObjectRef& getRTL() { return pRtl; } bool IsDocBasic() { return bDocBasic; } SbxVariable* VBAFind( const OUString& rName, SbxClassType t ); bool GetUNOConstant( const OUString& rName, css::uno::Any& aOut ); |