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

Unified Diff: webrtc/modules/audio_coding/codecs/g722/test/testG722.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/g722/test/testG722.cc
diff --git a/webrtc/modules/audio_coding/codecs/g722/test/testG722.cc b/webrtc/modules/audio_coding/codecs/g722/test/testG722.cc
index c55a2eb3572175cde1df3d6527ad505049b20746..69a7d069cfaa72261b351221fb9bfa386c5c8543 100644
--- a/webrtc/modules/audio_coding/codecs/g722/test/testG722.cc
+++ b/webrtc/modules/audio_coding/codecs/g722/test/testG722.cc
@@ -89,17 +89,17 @@ int main(int argc, char* argv[])
sscanf(argv[3], "%s", outbit);
sscanf(argv[4], "%s", outname);
- if ((inp = fopen(inname,"rb")) == NULL) {
- printf(" G.722: Cannot read file %s.\n", inname);
- exit(1);
+ if ((inp = fopen(inname, "rb")) == nullptr) {
+ printf(" G.722: Cannot read file %s.\n", inname);
+ exit(1);
}
- if ((outbitp = fopen(outbit,"wb")) == NULL) {
- printf(" G.722: Cannot write file %s.\n", outbit);
- exit(1);
+ if ((outbitp = fopen(outbit, "wb")) == nullptr) {
+ printf(" G.722: Cannot write file %s.\n", outbit);
+ exit(1);
}
- if ((outp = fopen(outname,"wb")) == NULL) {
- printf(" G.722: Cannot write file %s.\n", outname);
- exit(1);
+ if ((outp = fopen(outname, "wb")) == nullptr) {
+ printf(" G.722: Cannot write file %s.\n", outname);
+ exit(1);
}
printf("\nInput:%s\nOutput bitstream:%s\nOutput:%s\n", inname, outbit, outname);

Powered by Google App Engine
This is Rietveld 408576698