Merge "Migrate from android::String isEmpty to empty" into main am: 8a21830735

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2707853

Change-Id: I2412bcaad2813af336b939c1f7b295224dec7bab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2023-08-25 17:01:44 +00:00 committed by Automerger Merge Worker
commit 8f1eea8f9d

View file

@ -98,7 +98,7 @@ String8 sessionIdToString(const std::vector<uint8_t>& sessionId) {
for (auto it = sessionId.begin(); it != sessionId.end(); it++) {
result.appendFormat("%02x ", *it);
}
if (result.isEmpty()) {
if (result.empty()) {
result.append("(null)");
}
return result;