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

Unified Diff: webrtc/modules/audio_coding/codecs/g711/test/testG711.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/g711/test/testG711.cc
diff --git a/webrtc/modules/audio_coding/codecs/g711/test/testG711.cc b/webrtc/modules/audio_coding/codecs/g711/test/testG711.cc
index 5675b1f8b05de33c9e5b1acc74428af5ec41cf16..fa6b26fe174168790f28fadb5eee9e3bdb1ef6a1 100644
--- a/webrtc/modules/audio_coding/codecs/g711/test/testG711.cc
+++ b/webrtc/modules/audio_coding/codecs/g711/test/testG711.cc
@@ -36,7 +36,7 @@ int main(int argc, char* argv[]) {
char inname[80], outname[40], bitname[40];
FILE* inp;
FILE* outp;
- FILE* bitp = NULL;
+ FILE* bitp = nullptr;
int framecnt;
bool endfile;
@@ -93,17 +93,17 @@ int main(int argc, char* argv[]) {
sscanf(argv[4], "%s", outname);
if (argc == 6) {
sscanf(argv[5], "%s", bitname);
- if ((bitp = fopen(bitname, "wb")) == NULL) {
+ if ((bitp = fopen(bitname, "wb")) == nullptr) {
printf(" G.711: Cannot read file %s.\n", bitname);
exit(1);
}
}
- if ((inp = fopen(inname, "rb")) == NULL) {
+ if ((inp = fopen(inname, "rb")) == nullptr) {
printf(" G.711: Cannot read file %s.\n", inname);
exit(1);
}
- if ((outp = fopen(outname, "wb")) == NULL) {
+ if ((outp = fopen(outname, "wb")) == nullptr) {
printf(" G.711: Cannot write file %s.\n", outname);
exit(1);
}

Powered by Google App Engine
This is Rietveld 408576698