diff options
-rw-r--r-- | Parcel.cpp | 2 | ||||
-rw-r--r-- | ProcessState.cpp | 6 | ||||
-rw-r--r-- | TextOutput.h | 2 |
3 files changed, 5 insertions, 5 deletions
@@ -596,7 +596,7 @@ status_t Parcel::writeString16(const std::unique_ptr<String16>& str) status_t Parcel::writeString16(const String16& str) { - return writeString16(str.string(), str.size()); + return writeString16(str.c_str(), str.size()); } status_t Parcel::writeString16(const char16_t* str, size_t len) diff --git a/ProcessState.cpp b/ProcessState.cpp index c2284f8..2403500 100644 --- a/ProcessState.cpp +++ b/ProcessState.cpp @@ -301,9 +301,9 @@ void ProcessState::spawnPooledThread(bool isMain) { if (mThreadPoolStarted) { String8 name = makeBinderThreadName(); - ALOGV("Spawning new pooled thread, name=%s\n", name.string()); + ALOGV("Spawning new pooled thread, name=%s\n", name.c_str()); sp<Thread> t = new PoolThread(isMain); - t->run(name.string()); + t->run(name.c_str()); } } @@ -358,7 +358,7 @@ size_t ProcessState::getMaxThreads() { } void ProcessState::giveThreadPoolName() { - androidSetThreadName( makeBinderThreadName().string() ); + androidSetThreadName( makeBinderThreadName().c_str() ); } static int open_driver() diff --git a/TextOutput.h b/TextOutput.h index 9611ddb..ec4000b 100644 --- a/TextOutput.h +++ b/TextOutput.h @@ -137,7 +137,7 @@ inline TextOutput& operator<<(TextOutput& to, const bool &val) inline TextOutput& operator<<(TextOutput& to, const String16& val) { - to << String8(val).string(); + to << String8(val).c_str(); return to; } |