diff options
author | 2023-08-18 18:41:45 +0000 | |
---|---|---|
committer | 2023-08-18 18:41:45 +0000 | |
commit | 64441287a544d12f14e526e8cffac5085ea1c1b5 (patch) | |
tree | dec2fb0d982a90a0a7e795e629c235e44ffed03d /tools/aapt/SourcePos.cpp | |
parent | 36dc0ec7d2e76e33728519bcd338bb24b40e7088 (diff) | |
parent | b370693c676505e3875b33ac8ef0469cb12254e3 (diff) |
Merge "Use String8/16 c_str [tools]" into udc-dev-plus-aosp am: b370693c67
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24484497
Change-Id: Ib747577c2c8d235e5f3d7ecb717b54fb688013a2
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()); } } |