diff options
author | 2023-11-09 16:03:45 +0000 | |
---|---|---|
committer | 2023-11-09 18:18:13 +0000 | |
commit | 18d2c1f61aac37d1e4f73a1acc1ba1d2b746cdef (patch) | |
tree | b0115281a1a3c9edbbbd5748259c3bd11cbc6065 /runtime/native/java_lang_VMClassLoader.cc | |
parent | 47d81c4136e125f4ac45f21d51d95c3cf2cc3890 (diff) |
Change IsMultiDexLocation to std::string_view
Test: ./art/test.py -b --host --optimizing --64
Change-Id: I70ffa88d30f3b43cc36161ed81a2722bbf4c3bb7
Diffstat (limited to 'runtime/native/java_lang_VMClassLoader.cc')
-rw-r--r-- | runtime/native/java_lang_VMClassLoader.cc | 2 |
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); |