Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: util/mac/process_reader_test.cc

Issue 656703002: Convert NULL to nullptr (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Fix 80-column violations Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « util/mac/process_reader.cc ('k') | util/mac/service_management.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/mac/process_reader_test.cc
diff --git a/util/mac/process_reader_test.cc b/util/mac/process_reader_test.cc
index d1e47cd60433f37298cb658a5c3d686c2d26a512..d33ebbf363f748dd02d4c4358974c0e00a58cc3f 100644
--- a/util/mac/process_reader_test.cc
+++ b/util/mac/process_reader_test.cc
@@ -174,7 +174,7 @@ class TestThreadPool {
}
for (const ThreadInfo* thread_info : thread_infos_) {
- int rv = pthread_join(thread_info->pthread, NULL);
+ int rv = pthread_join(thread_info->pthread, nullptr);
CHECK_EQ(0, rv);
}
}
@@ -190,7 +190,7 @@ class TestThreadPool {
thread_infos_.push_back(thread_info);
int rv = pthread_create(&thread_info->pthread,
- NULL,
+ nullptr,
ThreadMain,
thread_info);
ASSERT_EQ(0, rv);
@@ -233,7 +233,7 @@ class TestThreadPool {
private:
struct ThreadInfo {
ThreadInfo()
- : pthread(NULL),
+ : pthread(nullptr),
stack_address(0),
ready_semaphore(0),
exit_semaphore(0),
@@ -279,7 +279,7 @@ class TestThreadPool {
// it.
CHECK_EQ(pthread_self(), thread_info->pthread);
- return NULL;
+ return nullptr;
}
// This is a PointerVector because the address of a ThreadInfo object is
« no previous file with comments | « util/mac/process_reader.cc ('k') | util/mac/service_management.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698