summaryrefslogtreecommitdiff
path: root/include/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-05 09:46:12 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-06 06:48:38 +0000
commitf3d9aab8410c00298f29ca0194c5d33d53c63ff2 (patch)
tree370d24d49547d8eb2cdbcb293992d9b9a4a670ed /include/basic
parent654c98064d3fd2bd1e13ae2bda5f84e8d51d0071 (diff)
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 <tml@collabora.com> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/basic')
-rw-r--r--include/basic/codecompletecache.hxx12
-rw-r--r--include/basic/sbxvar.hxx2
2 files changed, 7 insertions, 7 deletions
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 );