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

Unified Diff: webrtc/base/sigslot_unittest.cc

Issue 2685783014: Replace NULL with nullptr in all C++ files. (Closed)
Patch Set: Fixing android. 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
Index: webrtc/base/sigslot_unittest.cc
diff --git a/webrtc/base/sigslot_unittest.cc b/webrtc/base/sigslot_unittest.cc
index 4d3041d1326ecac9e5a61bf353bcbbf8f52c82d2..d44765055a03be3de7b255c8d73acc834de469a7 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_;

Powered by Google App Engine
This is Rietveld 408576698