From d2a698351d13901b95f836df09e9463344f6ab0e Mon Sep 17 00:00:00 2001 From: Tomasz Wasilczyk Date: Thu, 10 Aug 2023 23:54:44 +0000 Subject: Use String8/16 c_str [tools] Bug: 295394788 Test: make checkbuild Change-Id: I82d6899d8c15a10b15399c39177290012bb5f13b Merged-In: I82d6899d8c15a10b15399c39177290012bb5f13b --- tools/aapt/AaptUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/aapt/AaptUtil.cpp') diff --git a/tools/aapt/AaptUtil.cpp b/tools/aapt/AaptUtil.cpp index 293e144b71fe..e82860de578a 100644 --- a/tools/aapt/AaptUtil.cpp +++ b/tools/aapt/AaptUtil.cpp @@ -23,7 +23,7 @@ namespace AaptUtil { Vector split(const String8& str, const char sep) { Vector parts; - const char* p = str.string(); + const char* p = str.c_str(); const char* q; while (true) { @@ -41,7 +41,7 @@ Vector split(const String8& str, const char sep) { Vector splitAndLowerCase(const String8& str, const char sep) { Vector parts; - const char* p = str.string(); + const char* p = str.c_str(); const char* q; while (true) { -- cgit v1.2.3-59-g8ed1b