summaryrefslogtreecommitdiff
path: root/runtime/interpreter/unstarted_runtime.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2025-02-07 10:35:35 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2025-02-10 01:07:50 -0800
commit6ebd0862f7f91b8ff7c6ba4d3082474940893434 (patch)
tree167db63dc63c66f638f7a535239f7dba57e7a042 /runtime/interpreter/unstarted_runtime.cc
parent6fbb37a7513bf93f63f7a84925cc4d9913590abd (diff)
Use `std::string_view` for `DescriptorToDot()`, ...
... `DotToDescriptor()` and `DescriptorToName()` parameter. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 338123769 Change-Id: I9cda6e70f52ed8779fcd532a4e34515c12c40c78
Diffstat (limited to 'runtime/interpreter/unstarted_runtime.cc')
-rw-r--r--runtime/interpreter/unstarted_runtime.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/interpreter/unstarted_runtime.cc b/runtime/interpreter/unstarted_runtime.cc
index 07ab73f38e..246f81b014 100644
--- a/runtime/interpreter/unstarted_runtime.cc
+++ b/runtime/interpreter/unstarted_runtime.cc
@@ -139,7 +139,7 @@ static void UnstartedRuntimeFindClass(Thread* self,
bool initialize_class)
REQUIRES_SHARED(Locks::mutator_lock_) {
CHECK(className != nullptr);
- std::string descriptor(DotToDescriptor(className->ToModifiedUtf8().c_str()));
+ std::string descriptor = DotToDescriptor(className->ToModifiedUtf8());
ClassLinker* class_linker = Runtime::Current()->GetClassLinker();
ObjPtr<mirror::Class> found =