diff options
author | 2016-07-14 18:48:03 +0000 | |
---|---|---|
committer | 2016-07-14 18:48:03 +0000 | |
commit | 2fce5cf079924c20da8c35e2fd0271715091d97b (patch) | |
tree | 152d049f7ad8e126893ce15515cf2a00a2f91cfd /runtime/utils.cc | |
parent | 2c30a373428b8d19bf97866d5d323c4ca2fbca72 (diff) | |
parent | df8789252252c77660daf5d602d425b60b344b08 (diff) |
Merge "ART: Add FdFile constructors"
Diffstat (limited to 'runtime/utils.cc')
-rw-r--r-- | runtime/utils.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/utils.cc b/runtime/utils.cc index 6a50b8eee2..3f779df15a 100644 --- a/runtime/utils.cc +++ b/runtime/utils.cc @@ -136,8 +136,8 @@ void GetThreadStack(pthread_t thread, void** stack_base, size_t* stack_size, siz } bool ReadFileToString(const std::string& file_name, std::string* result) { - File file; - if (!file.Open(file_name, O_RDONLY)) { + File file(file_name, O_RDONLY, false); + if (!file.IsOpened()) { return false; } @@ -155,8 +155,8 @@ bool ReadFileToString(const std::string& file_name, std::string* result) { } bool PrintFileToLog(const std::string& file_name, LogSeverity level) { - File file; - if (!file.Open(file_name, O_RDONLY)) { + File file(file_name, O_RDONLY, false); + if (!file.IsOpened()) { return false; } |