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 --- libartbase/base/file_utils.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libartbase/base/file_utils.h') diff --git a/libartbase/base/file_utils.h b/libartbase/base/file_utils.h index 8222a8a1d4..205cc6115d 100644 --- a/libartbase/base/file_utils.h +++ b/libartbase/base/file_utils.h @@ -127,8 +127,10 @@ void GetDalvikCache(const char* subdir, bool create_if_absent, std::string* dalv // Returns the absolute dalvik-cache path for a DexFile or OatFile. The path returned will be // rooted at `cache_location`. -bool GetDalvikCacheFilename(const char* location, const char* cache_location, - std::string* filename, std::string* error_msg); +bool GetDalvikCacheFilename(std::string_view location, + std::string_view cache_location, + std::string* filename, + std::string* error_msg); // Returns the absolute dalvik-cache path. The path may include the instruction set sub-directory // if specified. -- cgit v1.2.3-59-g8ed1b