diff options
author | 2023-03-30 12:35:16 +0000 | |
---|---|---|
committer | 2023-04-05 11:04:51 +0000 | |
commit | ba87ab5ca06eb85300b3b63f420914f76843a4a5 (patch) | |
tree | b86b5946911a42bc1bcc3cac6321e765219371c4 /runtime/native/java_lang_Class.cc | |
parent | 2bb753eabb80ad9ed90dfef3693c1e72d3d9f689 (diff) |
Fix "readability-redundant-string-cstr" clang-tidy issues
Bug: 264654008
Test: m tidy-art
Change-Id: Ic852d58f106187791fa3a0d31829654de41bcb2b
Diffstat (limited to 'runtime/native/java_lang_Class.cc')
-rw-r--r-- | runtime/native/java_lang_Class.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/native/java_lang_Class.cc b/runtime/native/java_lang_Class.cc index 2506ca8610..5e54f85b9d 100644 --- a/runtime/native/java_lang_Class.cc +++ b/runtime/native/java_lang_Class.cc @@ -395,7 +395,7 @@ static jobject Class_getDeclaredField(JNIEnv* env, jobject javaThis, jstring nam } // We may have a pending exception if we failed to resolve. if (!soa.Self()->IsExceptionPending()) { - ThrowNoSuchFieldException(h_klass.Get(), name_str.c_str()); + ThrowNoSuchFieldException(h_klass.Get(), name_str); } return nullptr; } |