diff options
author | 2023-08-14 18:03:09 +0000 | |
---|---|---|
committer | 2023-08-24 19:41:17 +0000 | |
commit | e50b2dec7a98b7a96369558897354ff196c9af44 (patch) | |
tree | db63a3e04b9dcf2dc69863f347a0a32f855de531 /libs/input/VirtualKeyMap.cpp | |
parent | 8d1910e91c19dbdc6cfe4b08787b1b271def09f4 (diff) |
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: Id74502de0e51182aa9629db8dc70739be4483d12
Diffstat (limited to 'libs/input/VirtualKeyMap.cpp')
-rw-r--r-- | libs/input/VirtualKeyMap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/input/VirtualKeyMap.cpp b/libs/input/VirtualKeyMap.cpp index de62c870ff..8b8af4290f 100644 --- a/libs/input/VirtualKeyMap.cpp +++ b/libs/input/VirtualKeyMap.cpp @@ -146,7 +146,7 @@ bool VirtualKeyMap::Parser::parseNextIntField(int32_t* outValue) { String8 token = mTokenizer->nextToken(WHITESPACE_OR_FIELD_DELIMITER); char* end; *outValue = strtol(token.c_str(), &end, 0); - if (token.isEmpty() || *end != '\0') { + if (token.empty() || *end != '\0') { ALOGE("Expected an integer, got '%s'.", token.c_str()); return false; } |