summaryrefslogtreecommitdiff
path: root/runtime/interpreter/unstarted_runtime.cc
diff options
context:
space:
mode:
author Stefano Cianciulli <scianciulli@google.com> 2023-03-30 12:35:16 +0000
committer Stefano Cianciulli <scianciulli@google.com> 2023-04-05 11:04:51 +0000
commitba87ab5ca06eb85300b3b63f420914f76843a4a5 (patch)
treeb86b5946911a42bc1bcc3cac6321e765219371c4 /runtime/interpreter/unstarted_runtime.cc
parent2bb753eabb80ad9ed90dfef3693c1e72d3d9f689 (diff)
Fix "readability-redundant-string-cstr" clang-tidy issues
Bug: 264654008 Test: m tidy-art Change-Id: Ic852d58f106187791fa3a0d31829654de41bcb2b
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 cafd7c456c..32ed4300b7 100644
--- a/runtime/interpreter/unstarted_runtime.cc
+++ b/runtime/interpreter/unstarted_runtime.cc
@@ -1276,7 +1276,7 @@ static void UnstartedMemoryPeekArray(
if (offset < 0 || offset + count > array->GetLength()) {
std::string error_msg(StringPrintf("Array out of bounds in peekArray: %d/%d vs %d",
offset, count, array->GetLength()));
- Runtime::Current()->AbortTransactionAndThrowAbortError(self, error_msg.c_str());
+ Runtime::Current()->AbortTransactionAndThrowAbortError(self, error_msg);
return;
}