diff options
author | David Robillard <d@drobilla.net> | 2018-08-19 18:58:02 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-29 14:50:18 +0200 |
commit | f413600120ea988386d06d8266d16b56933ab75e (patch) | |
tree | 8c0fd036393a2fd9866d4fed507e7aacd86948cc | |
parent | ac65326242af579d6e1a7bd71730f1c78c8bde9b (diff) | |
download | chilbert-f413600120ea988386d06d8266d16b56933ab75e.tar.gz chilbert-f413600120ea988386d06d8266d16b56933ab75e.tar.bz2 chilbert-f413600120ea988386d06d8266d16b56933ab75e.zip |
Fix shadowing
-rw-r--r-- | chilbert/SmallBitVec.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chilbert/SmallBitVec.hpp b/chilbert/SmallBitVec.hpp index 478cbc9..599f789 100644 --- a/chilbert/SmallBitVec.hpp +++ b/chilbert/SmallBitVec.hpp @@ -276,15 +276,14 @@ public: return *this; } - bool operator==(const iterator_base& iterator_base) const + bool operator==(const iterator_base& rhs) const { - return m_vec == iterator_base.m_vec && - Mask::operator==(iterator_base); + return m_vec == rhs.m_vec && Mask::operator==(rhs); } - bool operator!=(const iterator_base& iterator_base) const + bool operator!=(const iterator_base& rhs) const { - return !operator==(iterator_base); + return !operator==(rhs); } bool operator*() const { return m_vec->test(*this); } |