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

Unified Diff: webrtc/base/file.cc

Issue 2360303004: Default constructor for file (Closed)
Patch Set: Comments Created 4 years, 3 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/base/file.cc
diff --git a/webrtc/base/file.cc b/webrtc/base/file.cc
index c97504f9c737a438c1b2bd585e58bddb087810ed..b40c9732706b5535b0c975f38c327f4b6137d34a 100644
--- a/webrtc/base/file.cc
+++ b/webrtc/base/file.cc
@@ -18,6 +18,8 @@ File::~File() {
Close();
}
+File::File() : file_(kInvalidPlatformFileValue) {}
+
File File::Open(const std::string& path) {
return File(OpenPlatformFile(path));
}
« webrtc/base/file.h ('K') | « webrtc/base/file.h ('k') | webrtc/base/file_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698