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/SourcePos.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/SourcePos.cpp')
| -rw-r--r-- | tools/aapt/SourcePos.cpp | 6 |
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()); } } |