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 18:11:54 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-08-18 18:11:54 +0000
commitb370693c676505e3875b33ac8ef0469cb12254e3 (patch)
tree4a32380467974da2b1b3b0fb083067edf7433675 /tools/aapt/SourcePos.cpp
parentb660bfd3f83f6ddf31060b62eca90a3d76ae420d (diff)
parentade063198edba319a9c499edfaa490b4694e4aa6 (diff)
Merge "Use String8/16 c_str [tools]" into udc-dev-plus-aosp
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());
}
}