diff options
author | 2023-08-23 22:12:33 +0000 | |
---|---|---|
committer | 2023-09-05 21:45:12 +0000 | |
commit | 31eb3c89a94d77eae9503bd635a4f056db3e3a31 (patch) | |
tree | a3647fc0996bb1567be2aadc0393e0e780a3df71 /libs | |
parent | a199526dcdfcd77257ea28d65bf5a454320d939a (diff) |
Migrate String8|16.setTo to assignment operator
Bug: 295394788
Test: make checkbuild
Change-Id: I370f66c469de73064dec2e42c539dc236dd69d1e
Diffstat (limited to 'libs')
-rw-r--r-- | libs/androidfw/ResourceTypes.cpp | 8 | ||||
-rw-r--r-- | libs/hwui/RenderNode.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/libs/androidfw/ResourceTypes.cpp b/libs/androidfw/ResourceTypes.cpp index 0e7d8412e615..cc380625d9be 100644 --- a/libs/androidfw/ResourceTypes.cpp +++ b/libs/androidfw/ResourceTypes.cpp @@ -6190,13 +6190,13 @@ bool ResTable::collectString(String16* outString, if (append) { outString->append(tmp); } else { - outString->setTo(tmp); + *outString = tmp; } } else { if (append) { outString->append(String16(s, len)); } else { - outString->setTo(s, len); + *outString = String16(s, len); } } @@ -7398,10 +7398,10 @@ bool ResTable::getIdmapInfo(const void* idmap, size_t sizeBytes, *pOverlayCrc = dtohl(map[3]); } if (pTargetPath) { - pTargetPath->setTo(reinterpret_cast<const char*>(map + 4)); + *pTargetPath = reinterpret_cast<const char*>(map + 4); } if (pOverlayPath) { - pOverlayPath->setTo(reinterpret_cast<const char*>(map + 4 + 256 / sizeof(uint32_t))); + *pOverlayPath = reinterpret_cast<const char*>(map + 4 + 256 / sizeof(uint32_t)); } return true; } diff --git a/libs/hwui/RenderNode.h b/libs/hwui/RenderNode.h index 7092e1733570..208dc3ef06e3 100644 --- a/libs/hwui/RenderNode.h +++ b/libs/hwui/RenderNode.h @@ -121,9 +121,9 @@ public: if (name) { const char* lastPeriod = strrchr(name, '.'); if (lastPeriod) { - mName.setTo(lastPeriod + 1); + mName = (lastPeriod + 1); } else { - mName.setTo(name); + mName = name; } } } |