diff options
author | Pavel Janík <Pavel@Janik.cz> | 2016-09-02 18:19:01 +0200 |
---|---|---|
committer | Pavel Janík <Pavel@Janik.cz> | 2016-09-27 09:25:15 +0200 |
commit | 4731cab8fbff51a8178c85d572e2482040278616 (patch) | |
tree | 09ba06a320b4876f9318a5b9ff086e5cae9c48fe /src/bloom.cpp | |
parent | 2f71490d21796594ca6f55e375558944de9db5a0 (diff) |
Do not shadow variables
Diffstat (limited to 'src/bloom.cpp')
-rw-r--r-- | src/bloom.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bloom.cpp b/src/bloom.cpp index fd328e8e96..2677652ada 100644 --- a/src/bloom.cpp +++ b/src/bloom.cpp @@ -280,8 +280,8 @@ void CRollingBloomFilter::insert(const std::vector<unsigned char>& vKey) void CRollingBloomFilter::insert(const uint256& hash) { - vector<unsigned char> data(hash.begin(), hash.end()); - insert(data); + vector<unsigned char> vData(hash.begin(), hash.end()); + insert(vData); } bool CRollingBloomFilter::contains(const std::vector<unsigned char>& vKey) const @@ -300,8 +300,8 @@ bool CRollingBloomFilter::contains(const std::vector<unsigned char>& vKey) const bool CRollingBloomFilter::contains(const uint256& hash) const { - vector<unsigned char> data(hash.begin(), hash.end()); - return contains(data); + vector<unsigned char> vData(hash.begin(), hash.end()); + return contains(vData); } void CRollingBloomFilter::reset() |