Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-07-03 15:52:51 +0300
committerJacques Lucke <jacques@blender.org>2020-07-03 15:53:06 +0300
commit93da09d717ff4502975c506c574faf0c07f010b4 (patch)
tree5496c001844cf557be525c08a6ef830998368d3d /source/blender/blenlib/BLI_probing_strategies.hh
parent9dce2c9d1432d2798854b909e6262fbfb94ce3c7 (diff)
Cleanup: add const in various places
Diffstat (limited to 'source/blender/blenlib/BLI_probing_strategies.hh')
-rw-r--r--source/blender/blenlib/BLI_probing_strategies.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenlib/BLI_probing_strategies.hh b/source/blender/blenlib/BLI_probing_strategies.hh
index 3296ce9a968..d2b16ac3516 100644
--- a/source/blender/blenlib/BLI_probing_strategies.hh
+++ b/source/blender/blenlib/BLI_probing_strategies.hh
@@ -68,7 +68,7 @@ class LinearProbingStrategy {
uint32_t hash_;
public:
- LinearProbingStrategy(uint32_t hash) : hash_(hash)
+ LinearProbingStrategy(const uint32_t hash) : hash_(hash)
{
}
@@ -106,7 +106,7 @@ class QuadraticProbingStrategy {
uint32_t iteration_;
public:
- QuadraticProbingStrategy(uint32_t hash)
+ QuadraticProbingStrategy(const uint32_t hash)
: original_hash_(hash), current_hash_(hash), iteration_(1)
{
}
@@ -144,7 +144,7 @@ template<uint32_t LinearSteps = 1, bool PreShuffle = false> class PythonProbingS
uint32_t perturb_;
public:
- PythonProbingStrategy(uint32_t hash) : hash_(hash), perturb_(hash)
+ PythonProbingStrategy(const uint32_t hash) : hash_(hash), perturb_(hash)
{
if (PreShuffle) {
this->next();
@@ -179,7 +179,7 @@ template<uint32_t LinearSteps = 2, bool PreShuffle = false> class ShuffleProbing
uint32_t perturb_;
public:
- ShuffleProbingStrategy(uint32_t hash) : hash_(hash), perturb_(hash)
+ ShuffleProbingStrategy(const uint32_t hash) : hash_(hash), perturb_(hash)
{
if (PreShuffle) {
this->next();