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 21:54:33 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-08-18 21:54:33 +0000
commite1ee1aab9f99d05ca97dee3701afb894a6129446 (patch)
tree6c3998b030418d97643643d99748d6d325ecab3f /tools/aapt2/Debug.cpp
parent3b35e9d4c877106858de12f30e5cff7bb3e8cbbe (diff)
parentd2a698351d13901b95f836df09e9463344f6ab0e (diff)
Merge "Use String8/16 c_str [tools]" into main
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() : ""));
}
}