summaryrefslogtreecommitdiff
path: root/src/mongo/unittest/system_resource_canary_bm.cpp
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2019-06-14 16:42:10 -0400
committerA. Jesse Jiryu Davis <jesse@mongodb.com>2019-06-14 19:23:18 -0400
commit47b380f03e8898f4706ff01fa2be64dfb72e0dba (patch)
treefb3508758c9abd0e297afee43ac847bf5aebcbbb /src/mongo/unittest/system_resource_canary_bm.cpp
parentb3c26131f6ab3f919beca658341e737de5d45683 (diff)
downloadmongo-47b380f03e8898f4706ff01fa2be64dfb72e0dba.tar.gz
SERVER-41071 Replace NULL and 0 with nullptr
Diffstat (limited to 'src/mongo/unittest/system_resource_canary_bm.cpp')
-rw-r--r--src/mongo/unittest/system_resource_canary_bm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/unittest/system_resource_canary_bm.cpp b/src/mongo/unittest/system_resource_canary_bm.cpp
index beaba9aa585..f2f09bc162b 100644
--- a/src/mongo/unittest/system_resource_canary_bm.cpp
+++ b/src/mongo/unittest/system_resource_canary_bm.cpp
@@ -137,7 +137,7 @@ BENCHMARK_DEFINE_F(CacheLatencyTest, BM_CacheLatency)(benchmark::State& state) {
size_t counter = arrLength / (kStrideBytes * 100) + 1;
for (auto keepRunning : state) {
- char** dummyResult = 0; // Dummy result to prevent the loop from being optimized out.
+ char** dummyResult = nullptr; // Dummy result to prevent the loop from being optimized out.
char** ptrToNextLinkedListNode = reinterpret_cast<char**>(data.get()[0]);
for (size_t i = 0; i < counter; ++i) {