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

This commit is contained in:
Treehugger Robot 2023-09-07 17:20:14 +00:00 committed by Gerrit Code Review
commit 594656ed52
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;