summaryrefslogtreecommitdiff
path: root/tools/aapt/SourcePos.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/aapt/SourcePos.cpp
parent3b35e9d4c877106858de12f30e5cff7bb3e8cbbe (diff)
parentd2a698351d13901b95f836df09e9463344f6ab0e (diff)
Merge "Use String8/16 c_str [tools]" into main
Diffstat (limited to 'tools/aapt/SourcePos.cpp')
-rw-r--r--tools/aapt/SourcePos.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/aapt/SourcePos.cpp b/tools/aapt/SourcePos.cpp
index 38643201c22d..e13028684414 100644
--- a/tools/aapt/SourcePos.cpp
+++ b/tools/aapt/SourcePos.cpp
@@ -80,12 +80,12 @@ ErrorPos::print(FILE* to) const
if (!this->file.isEmpty()) {
if (this->line >= 0) {
- fprintf(to, "%s:%d: %s%s\n", this->file.string(), this->line, type, this->error.string());
+ fprintf(to, "%s:%d: %s%s\n", this->file.c_str(), this->line, type, this->error.c_str());
} else {
- fprintf(to, "%s: %s%s\n", this->file.string(), type, this->error.string());
+ fprintf(to, "%s: %s%s\n", this->file.c_str(), type, this->error.c_str());
}
} else {
- fprintf(to, "%s%s\n", type, this->error.string());
+ fprintf(to, "%s%s\n", type, this->error.c_str());
}
}