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

Unified Diff: webrtc/modules/audio_coding/test/TestRedFec.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/modules/audio_coding/test/TestRedFec.cc
diff --git a/webrtc/modules/audio_coding/test/TestRedFec.cc b/webrtc/modules/audio_coding/test/TestRedFec.cc
index 7877204890eaa9b8c05aba4c1bbcd3097d45d5e6..c13291a23aada16debb0d94065451da3785dae0c 100644
--- a/webrtc/modules/audio_coding/test/TestRedFec.cc
+++ b/webrtc/modules/audio_coding/test/TestRedFec.cc
@@ -51,14 +51,13 @@ namespace {
TestRedFec::TestRedFec()
: _acmA(AudioCodingModule::Create(0)),
_acmB(AudioCodingModule::Create(1)),
- _channelA2B(NULL),
- _testCntr(0) {
-}
+ _channelA2B(nullptr),
+ _testCntr(0) {}
TestRedFec::~TestRedFec() {
- if (_channelA2B != NULL) {
+ if (_channelA2B != nullptr) {
delete _channelA2B;
- _channelA2B = NULL;
+ _channelA2B = nullptr;
}
}
@@ -438,7 +437,7 @@ int16_t TestRedFec::RegisterSendCodec(char side, const char* codecName,
return -1;
}
- if (myACM == NULL) {
+ if (myACM == nullptr) {
assert(false);
return -1;
}

Powered by Google App Engine
This is Rietveld 408576698