summaryrefslogtreecommitdiff
path: root/runtime/native/java_lang_VMClassLoader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/native/java_lang_VMClassLoader.cc')
-rw-r--r--runtime/native/java_lang_VMClassLoader.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/native/java_lang_VMClassLoader.cc b/runtime/native/java_lang_VMClassLoader.cc
index b9c72b82e7..4dad46fb8c 100644
--- a/runtime/native/java_lang_VMClassLoader.cc
+++ b/runtime/native/java_lang_VMClassLoader.cc
@@ -134,7 +134,7 @@ static jobjectArray VMClassLoader_getBootClassPathEntries(JNIEnv* env, jclass) {
ClassLinker* class_linker = Runtime::Current()->GetClassLinker();
const std::vector<const DexFile*>& path = class_linker->GetBootClassPath();
auto is_base_dex = [](const DexFile* dex_file) {
- return !DexFileLoader::IsMultiDexLocation(dex_file->GetLocation().c_str());
+ return !DexFileLoader::IsMultiDexLocation(dex_file->GetLocation());
};
size_t jar_count = std::count_if(path.begin(), path.end(), is_base_dex);