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

Unified Diff: webrtc/base/sigslot_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/sigslot.h ('k') | webrtc/base/sigslottester_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/sigslot_unittest.cc
diff --git a/webrtc/base/sigslot_unittest.cc b/webrtc/base/sigslot_unittest.cc
index d7d64b4393545d1e32425b2c030aa102fb4f24b9..cb773363101b93e3f0ee05f3c3208ddbc7a69cea 100644
--- a/webrtc/base/sigslot_unittest.cc
+++ b/webrtc/base/sigslot_unittest.cc
@@ -32,8 +32,7 @@ template<class slot_policy = sigslot::single_threaded,
class signal_policy = sigslot::single_threaded>
class SigslotReceiver : public sigslot::has_slots<slot_policy> {
public:
- SigslotReceiver() : signal_(NULL), signal_count_(0) {
- }
+ SigslotReceiver() : signal_(nullptr), signal_count_(0) {}
~SigslotReceiver() {
}
@@ -47,7 +46,7 @@ class SigslotReceiver : public sigslot::has_slots<slot_policy> {
void Disconnect() {
if (!signal_) return;
signal_->disconnect(this);
- signal_ = NULL;
+ signal_ = nullptr;
}
void OnSignal() {
++signal_count_;
« no previous file with comments | « webrtc/base/sigslot.h ('k') | webrtc/base/sigslottester_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698