summaryrefslogtreecommitdiff
path: root/tools/aapt/CrunchCache.cpp
diff options
context:
space:
mode:
author Tomasz Wasilczyk <twasilczyk@google.com> 2023-08-10 23:54:44 +0000
committer Tomasz Wasilczyk <twasilczyk@google.com> 2023-08-18 16:53:34 +0000
commitd2a698351d13901b95f836df09e9463344f6ab0e (patch)
treef5b5141eb4645a5ef124309dc814c6985bbed93f /tools/aapt/CrunchCache.cpp
parentd122f435d437c0096466d008f1c460a62884be66 (diff)
Use String8/16 c_str [tools]
Bug: 295394788 Test: make checkbuild Change-Id: I82d6899d8c15a10b15399c39177290012bb5f13b Merged-In: I82d6899d8c15a10b15399c39177290012bb5f13b
Diffstat (limited to 'tools/aapt/CrunchCache.cpp')
-rw-r--r--tools/aapt/CrunchCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/aapt/CrunchCache.cpp b/tools/aapt/CrunchCache.cpp
index 7b8a576b88d3..1f2febec2230 100644
--- a/tools/aapt/CrunchCache.cpp
+++ b/tools/aapt/CrunchCache.cpp
@@ -44,7 +44,7 @@ size_t CrunchCache::crunch(CacheUpdater* cu, bool forceOverwrite)
// This efficiently strips the source directory prefix from our path.
// Also, String8 doesn't have a substring method so this is what we've
// got to work with.
- const char* rPathPtr = mSourceFiles.keyAt(0).string()+mSourcePath.length();
+ const char* rPathPtr = mSourceFiles.keyAt(0).c_str()+mSourcePath.length();
// Strip leading slash if present
int offset = 0;
if (rPathPtr[0] == OS_PATH_SEPARATOR)