From 2b4eb676348f122ab0a21e19d7a3c57bd9898c6c Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Wed, 12 Jun 2024 09:30:37 +0000 Subject: 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 --- runtime/native_stack_dump.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/native_stack_dump.cc') diff --git a/runtime/native_stack_dump.cc b/runtime/native_stack_dump.cc index ad09762972..5a6cee0630 100644 --- a/runtime/native_stack_dump.cc +++ b/runtime/native_stack_dump.cc @@ -236,7 +236,7 @@ static void Addr2line(const std::string& map_src, std::unique_ptr* pipe /* inout */) { std::array kIgnoreSuffixes{ ".dex", ".jar", ".vdex" }; for (const char* ignore_suffix : kIgnoreSuffixes) { - if (android::base::EndsWith(map_src, ignore_suffix)) { + if (map_src.ends_with(ignore_suffix)) { // Ignore file names that do not have map information addr2line can consume. e.g. vdex // files are special frames injected for the interpreter so they don't have any line // number information available. -- cgit v1.2.3-59-g8ed1b