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

Unified Diff: webrtc/base/sharedexclusivelock_unittest.cc

Issue 2718663005: Replace NULL with nullptr or null in webrtc/base/. (Closed)
Patch Set: Fixing Windows and formatting issues. Created 3 years, 10 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 | « webrtc/base/scoped_ref_ptr.h ('k') | webrtc/base/signalthread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/sharedexclusivelock_unittest.cc
diff --git a/webrtc/base/sharedexclusivelock_unittest.cc b/webrtc/base/sharedexclusivelock_unittest.cc
index 132bbd9f29e3dded9d115e24c9fed504391c4139..e0462ffa115d99674c8ab4aa1ccd8fd7cff9cddc 100644
--- a/webrtc/base/sharedexclusivelock_unittest.cc
+++ b/webrtc/base/sharedexclusivelock_unittest.cc
@@ -61,7 +61,7 @@ class ReadTask : public SharedExclusiveTask {
private:
virtual void OnMessage(Message* message) {
RTC_CHECK(rtc::Thread::Current() == worker_thread_.get());
- RTC_CHECK(message != NULL);
+ RTC_CHECK(message != nullptr);
RTC_CHECK(message->message_id == kMsgRead);
TypedMessageData<int*>* message_data =
@@ -73,7 +73,7 @@ class ReadTask : public SharedExclusiveTask {
done_->Set();
}
delete message->pdata;
- message->pdata = NULL;
+ message->pdata = nullptr;
}
};
@@ -91,7 +91,7 @@ class WriteTask : public SharedExclusiveTask {
private:
virtual void OnMessage(Message* message) {
RTC_CHECK(rtc::Thread::Current() == worker_thread_.get());
- RTC_CHECK(message != NULL);
+ RTC_CHECK(message != nullptr);
RTC_CHECK(message->message_id == kMsgWrite);
TypedMessageData<int>* message_data =
@@ -103,7 +103,7 @@ class WriteTask : public SharedExclusiveTask {
done_->Set();
}
delete message->pdata;
- message->pdata = NULL;
+ message->pdata = nullptr;
}
};
« no previous file with comments | « webrtc/base/scoped_ref_ptr.h ('k') | webrtc/base/signalthread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698