summaryrefslogtreecommitdiff
path: root/tools/veridex/hidden_api_finder.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2024-06-12 09:30:37 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2024-06-14 10:14:50 +0000
commit2b4eb676348f122ab0a21e19d7a3c57bd9898c6c (patch)
tree281ceaa54365c8c38ca94ea484c831aeb1951bf8 /tools/veridex/hidden_api_finder.cc
parent9132d9056cc1d4eb342d1a2b0315fc1f054ca2f8 (diff)
Use C++20 `string{,_view}::{starts,ends}_with()`, part 2.
Replace uses of `android::base::{Starts,Ends}With()`. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: I80a0ca93f433464270989d248dd999e9366a1c17
Diffstat (limited to 'tools/veridex/hidden_api_finder.cc')
-rw-r--r--tools/veridex/hidden_api_finder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/veridex/hidden_api_finder.cc b/tools/veridex/hidden_api_finder.cc
index 9455b0f10b..f0c520f3ee 100644
--- a/tools/veridex/hidden_api_finder.cc
+++ b/tools/veridex/hidden_api_finder.cc
@@ -59,7 +59,7 @@ void HiddenApiFinder::CollectAccesses(VeridexResolver* resolver,
// Note: we collect strings constants only referenced in code items as the string table
// contains other kind of strings (eg types).
for (ClassAccessor accessor : dex_file.GetClasses()) {
- if (class_filter.Matches(accessor.GetDescriptor())) {
+ if (class_filter.Matches(accessor.GetDescriptorView())) {
for (const ClassAccessor::Method& method : accessor.GetMethods()) {
CodeItemInstructionAccessor codes = method.GetInstructions();
const uint32_t max_pc = codes.InsnsSizeInCodeUnits();