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

Unified Diff: webrtc/modules/audio_coding/codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.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/codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc
diff --git a/webrtc/modules/audio_coding/codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc b/webrtc/modules/audio_coding/codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc
index a53e7bd0b560ca594deda783254b29113a18e899..5b8591a056c0bc66ff22552e57a09b9332bcb2d5 100644
--- a/webrtc/modules/audio_coding/codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc
+++ b/webrtc/modules/audio_coding/codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc
@@ -98,7 +98,7 @@ int main(int argc, char* argv[])
for(clientCntr = 0; clientCntr < NUM_CLIENTS; clientCntr++)
{
- codecInstance[clientCntr] = NULL;
+ codecInstance[clientCntr] = nullptr;
printf("\n");
printf("Client %d\n", clientCntr + 1);
@@ -135,8 +135,7 @@ int main(int argc, char* argv[])
lenAudioIn10msTmp[clientCntr] = 0;
packetData[clientCntr] = (BottleNeckModel*)new(BottleNeckModel);
- if(packetData[clientCntr] == NULL)
- {
+ if (packetData[clientCntr] == nullptr) {
printf("Could not allocate memory for packetData \n");
return -1;
}

Powered by Google App Engine
This is Rietveld 408576698