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