From 311bc1fc8b39d7f2168a04437034fb5b29c2c8b2 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 13 Apr 2016 09:32:53 +0200 Subject: loplugin:passstuffbyref in basic Change-Id: Ie93b33502325f00ba95ab168a445a347148f9edd --- include/basic/basmgr.hxx | 4 ++-- include/basic/sbmod.hxx | 2 +- include/basic/sbstar.hxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'include') 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 ); -- cgit