From 38836b884b04c4a625958f1450a44673a29bb543 Mon Sep 17 00:00:00 2001 From: Tomasz Wasilczyk Date: Mon, 14 Aug 2023 18:16:11 +0000 Subject: [PATCH] Migrate from android::String isEmpty to empty This empty method is different from the old one - it aligns with std::string definition. Bug: 295394788 Test: make checkbuild Change-Id: I98dad222b149e6052b7dc63c477d84c9eb011dd3 --- cas/aidl/default/TypeConvert.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cas/aidl/default/TypeConvert.cpp b/cas/aidl/default/TypeConvert.cpp index 4f7005f72f..1f0a46daf1 100644 --- a/cas/aidl/default/TypeConvert.cpp +++ b/cas/aidl/default/TypeConvert.cpp @@ -98,7 +98,7 @@ String8 sessionIdToString(const std::vector& 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;