Make CHECKs with char*s do what you mean.
char*s are pointers in CHECKs, not 1970s-style strings.
Also fix an unnecessary std::string copy and remove two unused #includes.
Change-Id: I0045878f86e15c4f1d0fd4f61953334e826eb75c
diff --git a/src/oat_file.cc b/src/oat_file.cc
index 646f1c5..a4bbc5f 100644
--- a/src/oat_file.cc
+++ b/src/oat_file.cc
@@ -163,7 +163,7 @@
}
OatFile::OatDexFile::OatDexFile(const OatFile* oat_file,
- std::string dex_file_location,
+ const std::string& dex_file_location,
uint32_t dex_file_checksum,
byte* dex_file_pointer,
const uint32_t* oat_class_offsets_pointer)