summaryrefslogtreecommitdiff
path: root/tools/aapt2/Debug.cpp
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2023-08-18 22:16:38 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2023-08-18 22:16:38 +0000
commit5da3bffd8df4a8fc8dee4a76dd25bba867bdf6a2 (patch)
tree120581edcff183c54b699da80285d5f45d32a473 /tools/aapt2/Debug.cpp
parentfd825692c87f33505ee4b00e7c0b850b3ec1591c (diff)
parente1ee1aab9f99d05ca97dee3701afb894a6129446 (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/aapt2/Debug.cpp')
-rw-r--r--tools/aapt2/Debug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/aapt2/Debug.cpp b/tools/aapt2/Debug.cpp
index f47d66ea5e87..3fa39009971c 100644
--- a/tools/aapt2/Debug.cpp
+++ b/tools/aapt2/Debug.cpp
@@ -445,7 +445,7 @@ void Debug::DumpResStringPool(const android::ResStringPool* pool, text::Printer*
const size_t NS = pool->size();
for (size_t s=0; s<NS; s++) {
auto str = pool->string8ObjectAt(s);
- printer->Print(StringPrintf("String #%zd : %s\n", s, str.has_value() ? str->string() : ""));
+ printer->Print(StringPrintf("String #%zd : %s\n", s, str.has_value() ? str->c_str() : ""));
}
}