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

Unified Diff: webrtc/test/testsupport/fileutils.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/test/testsupport/fileutils.cc
diff --git a/webrtc/test/testsupport/fileutils.cc b/webrtc/test/testsupport/fileutils.cc
index 2d3ea00925a10fc3ea7306eaf0454e41f4e8658f..a713452a87d8888962b01b6dbe7b96279835049c 100644
--- a/webrtc/test/testsupport/fileutils.cc
+++ b/webrtc/test/testsupport/fileutils.cc
@@ -138,7 +138,7 @@ std::string ProjectRootPath() {
#ifdef WIN32
BOOL succeeded = PathCanonicalizeA(canonical_path, path.c_str());
#else
- bool succeeded = realpath(path.c_str(), canonical_path) != NULL;
+ bool succeeded = realpath(path.c_str(), canonical_path) != nullptr;
#endif
if (succeeded) {
path = std::string(canonical_path) + kPathDelimiter;
@@ -274,7 +274,7 @@ std::string ResourcePath(const std::string& name,
size_t GetFileSize(const std::string& filename) {
FILE* f = fopen(filename.c_str(), "rb");
size_t size = 0;
- if (f != NULL) {
+ if (f != nullptr) {
if (fseek(f, 0, SEEK_END) == 0) {
size = ftell(f);
}

Powered by Google App Engine
This is Rietveld 408576698