From f3d9aab8410c00298f29ca0194c5d33d53c63ff2 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 5 May 2016 09:46:12 +0200 Subject: teach passstuffbyref plugin to check for.. unnecessarily passing primitives by const ref. Suggested by Tor Lillqvist Change-Id: I445e220542969ca3e252581e5953fb01cb2b2be6 Reviewed-on: https://gerrit.libreoffice.org/24672 Reviewed-by: Tor Lillqvist Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/basic/codecompletecache.hxx | 12 ++++++------ include/basic/sbxvar.hxx | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'include/basic') diff --git a/include/basic/codecompletecache.hxx b/include/basic/codecompletecache.hxx index 591daf9186a0..07e6c37f3e43 100644 --- a/include/basic/codecompletecache.hxx +++ b/include/basic/codecompletecache.hxx @@ -52,22 +52,22 @@ public: CodeCompleteOptions(); static bool IsCodeCompleteOn(); - static void SetCodeCompleteOn( const bool& b ); + static void SetCodeCompleteOn( bool b ); static bool IsExtendedTypeDeclaration(); - static void SetExtendedTypeDeclaration( const bool& b ); + static void SetExtendedTypeDeclaration( bool b ); static bool IsProcedureAutoCompleteOn(); - static void SetProcedureAutoCompleteOn( const bool& b ); + static void SetProcedureAutoCompleteOn( bool b ); static bool IsAutoCloseQuotesOn(); - static void SetAutoCloseQuotesOn( const bool& b ); + static void SetAutoCloseQuotesOn( bool b ); static bool IsAutoCloseParenthesisOn(); - static void SetAutoCloseParenthesisOn( const bool& b ); + static void SetAutoCloseParenthesisOn( bool b ); static bool IsAutoCorrectOn(); - static void SetAutoCorrectOn( const bool& b ); + static void SetAutoCorrectOn( bool b ); }; class BASIC_DLLPUBLIC CodeCompleteDataCache diff --git a/include/basic/sbxvar.hxx b/include/basic/sbxvar.hxx index 489212184057..13178fa188bc 100644 --- a/include/basic/sbxvar.hxx +++ b/include/basic/sbxvar.hxx @@ -176,7 +176,7 @@ public: void PutDecimal( css::bridge::oleautomation::Decimal& rAutomationDec ); bool PutDecimal( SbxDecimal* pDecimal ); // This function is needed for Windows build, don't remove void fillAutomationDecimal( css::bridge::oleautomation::Decimal& rAutomationDec ) const; - bool PutCurrency( const sal_Int64& ); + bool PutCurrency( sal_Int64 ); // Interface for CDbl in Basic static SbxError ScanNumIntnl( const OUString& rSrc, double& nVal, bool bSingle = false ); -- cgit v1.2.3