diff options
author | 2015-07-31 17:35:52 -0700 | |
---|---|---|
committer | 2015-07-31 17:35:52 -0700 | |
commit | a315f5c546b796f55f4872bb6efc15eb858d9639 (patch) | |
tree | 188bcbab728423d79147fd9d9da45c2539371ac5 /compiler/image_writer.cc | |
parent | bc1d78daa463572c5a770cdca858a3b51d8e1b7b (diff) |
cleanup: Replace pointers with out-parameters and fix-up formatting
Cleans all of oat_file.h/.cc, parsed_options.h./cc, runtime.h/.cc
Other files are touched only incidentally to use outof(x) instead of &x.
Change-Id: I0bb15111149d53bb21aac2199ef33bd35333b0ca
Diffstat (limited to 'compiler/image_writer.cc')
-rw-r--r-- | compiler/image_writer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/image_writer.cc b/compiler/image_writer.cc index dda36fa2ef..17d75a3cd3 100644 --- a/compiler/image_writer.cc +++ b/compiler/image_writer.cc @@ -141,7 +141,7 @@ bool ImageWriter::Write(const std::string& image_filename, return false; } std::string error_msg; - oat_file_ = OatFile::OpenReadable(oat_file.get(), oat_location, nullptr, &error_msg); + oat_file_ = OatFile::OpenReadable(oat_file.get(), oat_location, nullptr, outof(error_msg)); if (oat_file_ == nullptr) { PLOG(ERROR) << "Failed to open writable oat file " << oat_filename << " for " << oat_location << ": " << error_msg; |