Migrate from android::String isEmpty to empty

Bug: 295394788
Test: make checkbuild
Change-Id: I66604d41926df012fd5834e74818f3179b77eb02
This commit is contained in:
Tomasz Wasilczyk 2023-09-07 15:51:14 +00:00
parent 37fb2fe77d
commit ad5787ada5
3 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;