mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Migrate from android::String isEmpty to empty" into main am: 594656ed52 am: c4e9e8e72e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2745913 Change-Id: Ice41abde6b4b637f04a514dbb1b7fa01b03f9333 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -82,7 +82,7 @@ String8 sessionIdToString(const CasSessionId &sessionId) {
|
||||
for (size_t i = 0; i < sessionId.size(); i++) {
|
||||
result.appendFormat("%02x ", sessionId[i]);
|
||||
}
|
||||
if (result.isEmpty()) {
|
||||
if (result.empty()) {
|
||||
result.append("(null)");
|
||||
}
|
||||
return result;
|
||||
|
||||
@@ -81,7 +81,7 @@ String8 sessionIdToString(const CasSessionId& sessionId) {
|
||||
for (size_t i = 0; i < sessionId.size(); i++) {
|
||||
result.appendFormat("%02x ", sessionId[i]);
|
||||
}
|
||||
if (result.isEmpty()) {
|
||||
if (result.empty()) {
|
||||
result.append("(null)");
|
||||
}
|
||||
return result;
|
||||
|
||||
@@ -108,7 +108,7 @@ String8 sessionIdToString(const CasSessionId& sessionId) {
|
||||
for (size_t i = 0; i < sessionId.size(); i++) {
|
||||
result.appendFormat("%02x ", sessionId[i]);
|
||||
}
|
||||
if (result.isEmpty()) {
|
||||
if (result.empty()) {
|
||||
result.append("(null)");
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user