summaryrefslogtreecommitdiff
path: root/runtime/native/java_lang_VMClassLoader.cc
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2023-11-09 16:03:45 +0000
committer Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2023-11-09 18:18:13 +0000
commit18d2c1f61aac37d1e4f73a1acc1ba1d2b746cdef (patch)
treeb0115281a1a3c9edbbbd5748259c3bd11cbc6065 /runtime/native/java_lang_VMClassLoader.cc
parent47d81c4136e125f4ac45f21d51d95c3cf2cc3890 (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.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);