diff options
| author | 2023-08-18 22:16:38 +0000 | |
|---|---|---|
| committer | 2023-08-18 22:16:38 +0000 | |
| commit | 5da3bffd8df4a8fc8dee4a76dd25bba867bdf6a2 (patch) | |
| tree | 120581edcff183c54b699da80285d5f45d32a473 /tools/aapt/CrunchCache.cpp | |
| parent | fd825692c87f33505ee4b00e7c0b850b3ec1591c (diff) | |
| parent | e1ee1aab9f99d05ca97dee3701afb894a6129446 (diff) | |
Merge "Use String8/16 c_str [tools]" into main am: e1ee1aab9f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2715262
Change-Id: Id96698af270e502eed312f6ce0adb3d8ac94f2ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'tools/aapt/CrunchCache.cpp')
| -rw-r--r-- | tools/aapt/CrunchCache.cpp | 2 |
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) |