diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-06-21 21:10:00 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2017-08-16 10:24:18 +0200 |
commit | 36d326e8b0866df4e70f81c2aa0a2e19d544399c (patch) | |
tree | be4837f43af4a7fb2c48753849bb3e7a9b776387 /src/sync.cpp | |
parent | d451d0bcf15d8025c3e963df033f918d646aff6a (diff) |
Use nullptr instead of zero (0) as the null pointer constant
Diffstat (limited to 'src/sync.cpp')
-rw-r--r-- | src/sync.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sync.cpp b/src/sync.cpp index b82f3770e4..9c351ea487 100644 --- a/src/sync.cpp +++ b/src/sync.cpp @@ -162,7 +162,7 @@ void DeleteLock(void* cs) return; } boost::unique_lock<boost::mutex> lock(lockdata.dd_mutex); - std::pair<void*, void*> item = std::make_pair(cs, (void*)0); + std::pair<void*, void*> item = std::make_pair(cs, nullptr); LockOrders::iterator it = lockdata.lockorders.lower_bound(item); while (it != lockdata.lockorders.end() && it->first.first == cs) { std::pair<void*, void*> invitem = std::make_pair(it->first.second, it->first.first); |