From ad5787ada52da2ab0190ae9cd524a894c65c249c Mon Sep 17 00:00:00 2001 From: Tomasz Wasilczyk Date: Thu, 7 Sep 2023 15:51:14 +0000 Subject: [PATCH] Migrate from android::String isEmpty to empty Bug: 295394788 Test: make checkbuild Change-Id: I66604d41926df012fd5834e74818f3179b77eb02 --- cas/1.0/default/TypeConvert.cpp | 2 +- cas/1.1/default/TypeConvert.cpp | 2 +- cas/1.2/default/TypeConvert.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cas/1.0/default/TypeConvert.cpp b/cas/1.0/default/TypeConvert.cpp index cd0efdbc2a..cc25cf5313 100644 --- a/cas/1.0/default/TypeConvert.cpp +++ b/cas/1.0/default/TypeConvert.cpp @@ -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; diff --git a/cas/1.1/default/TypeConvert.cpp b/cas/1.1/default/TypeConvert.cpp index 09ef41ae8f..2ffc79a740 100644 --- a/cas/1.1/default/TypeConvert.cpp +++ b/cas/1.1/default/TypeConvert.cpp @@ -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; diff --git a/cas/1.2/default/TypeConvert.cpp b/cas/1.2/default/TypeConvert.cpp index c4bd0dded5..7d27fa1b0e 100644 --- a/cas/1.2/default/TypeConvert.cpp +++ b/cas/1.2/default/TypeConvert.cpp @@ -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;