aboutsummaryrefslogtreecommitdiff
path: root/src/bench
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-06-21 21:10:00 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2017-08-16 10:24:18 +0200
commit36d326e8b0866df4e70f81c2aa0a2e19d544399c (patch)
treebe4837f43af4a7fb2c48753849bb3e7a9b776387 /src/bench
parentd451d0bcf15d8025c3e963df033f918d646aff6a (diff)
downloadbitcoin-36d326e8b0866df4e70f81c2aa0a2e19d544399c.tar.xz
Use nullptr instead of zero (0) as the null pointer constant
Diffstat (limited to 'src/bench')
-rw-r--r--src/bench/lockedpool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bench/lockedpool.cpp b/src/bench/lockedpool.cpp
index 43a1422795..c6a05567be 100644
--- a/src/bench/lockedpool.cpp
+++ b/src/bench/lockedpool.cpp
@@ -21,14 +21,14 @@ static void BenchLockedPool(benchmark::State& state)
std::vector<void*> addr;
for (int x=0; x<ASIZE; ++x)
- addr.push_back(0);
+ addr.push_back(nullptr);
uint32_t s = 0x12345678;
while (state.KeepRunning()) {
for (int x=0; x<BITER; ++x) {
int idx = s & (addr.size()-1);
if (s & 0x80000000) {
b.free(addr[idx]);
- addr[idx] = 0;
+ addr[idx] = nullptr;
} else if(!addr[idx]) {
addr[idx] = b.alloc((s >> 16) & (MSIZE-1));
}