summaryrefslogtreecommitdiff
path: root/basic/source/classes
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 /basic/source/classes
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 'basic/source/classes')
-rw-r--r--basic/source/classes/codecompletecache.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/basic/source/classes/codecompletecache.cxx b/basic/source/classes/codecompletecache.cxx
index 4c973107b0db..0ea913a9c1d3 100644
--- a/basic/source/classes/codecompletecache.cxx
+++ b/basic/source/classes/codecompletecache.cxx
@@ -42,7 +42,7 @@ bool CodeCompleteOptions::IsCodeCompleteOn()
return theCodeCompleteOptions::get().aMiscOptions.IsExperimentalMode() && theCodeCompleteOptions::get().bIsCodeCompleteOn;
}
-void CodeCompleteOptions::SetCodeCompleteOn( const bool& b )
+void CodeCompleteOptions::SetCodeCompleteOn( bool b )
{
theCodeCompleteOptions::get().bIsCodeCompleteOn = b;
}
@@ -52,7 +52,7 @@ bool CodeCompleteOptions::IsExtendedTypeDeclaration()
return theCodeCompleteOptions::get().aMiscOptions.IsExperimentalMode() && theCodeCompleteOptions::get().bExtendedTypeDeclarationOn;
}
-void CodeCompleteOptions::SetExtendedTypeDeclaration( const bool& b )
+void CodeCompleteOptions::SetExtendedTypeDeclaration( bool b )
{
theCodeCompleteOptions::get().bExtendedTypeDeclarationOn = b;
}
@@ -62,7 +62,7 @@ bool CodeCompleteOptions::IsProcedureAutoCompleteOn()
return theCodeCompleteOptions::get().aMiscOptions.IsExperimentalMode() && theCodeCompleteOptions::get().bIsProcedureAutoCompleteOn;
}
-void CodeCompleteOptions::SetProcedureAutoCompleteOn( const bool& b )
+void CodeCompleteOptions::SetProcedureAutoCompleteOn( bool b )
{
theCodeCompleteOptions::get().bIsProcedureAutoCompleteOn = b;
}
@@ -72,7 +72,7 @@ bool CodeCompleteOptions::IsAutoCloseQuotesOn()
return theCodeCompleteOptions::get().aMiscOptions.IsExperimentalMode() && theCodeCompleteOptions::get().bIsAutoCloseQuotesOn;
}
-void CodeCompleteOptions::SetAutoCloseQuotesOn( const bool& b )
+void CodeCompleteOptions::SetAutoCloseQuotesOn( bool b )
{
theCodeCompleteOptions::get().bIsAutoCloseQuotesOn = b;
}
@@ -82,7 +82,7 @@ bool CodeCompleteOptions::IsAutoCloseParenthesisOn()
return theCodeCompleteOptions::get().aMiscOptions.IsExperimentalMode() && theCodeCompleteOptions::get().bIsAutoCloseParenthesisOn;
}
-void CodeCompleteOptions::SetAutoCloseParenthesisOn( const bool& b )
+void CodeCompleteOptions::SetAutoCloseParenthesisOn( bool b )
{
theCodeCompleteOptions::get().bIsAutoCloseParenthesisOn = b;
}
@@ -92,7 +92,7 @@ bool CodeCompleteOptions::IsAutoCorrectOn()
return theCodeCompleteOptions::get().aMiscOptions.IsExperimentalMode() && theCodeCompleteOptions::get().bIsAutoCorrectOn;
}
-void CodeCompleteOptions::SetAutoCorrectOn( const bool& b )
+void CodeCompleteOptions::SetAutoCorrectOn( bool b )
{
theCodeCompleteOptions::get().bIsAutoCorrectOn = b;
}