diff options
author | 2023-08-30 21:24:24 +0000 | |
---|---|---|
committer | 2023-08-30 21:24:24 +0000 | |
commit | 19bcc3a5810fb1c5c0b4f864798d802ac052d24b (patch) | |
tree | 1d1161298f3ccba7109c8a223debf3266636ef84 /libs/input/PropertyMap.cpp | |
parent | e8cf64768a6912bc746c49be9cc0be1624ce86e0 (diff) | |
parent | 02fd95c1bdf91aa9199f331a5fd8513b723d02fc (diff) |
Merge "Use String8/16 c_str [aosp-main-future]" into aosp-main-future
Diffstat (limited to 'libs/input/PropertyMap.cpp')
-rw-r--r-- | libs/input/PropertyMap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/input/PropertyMap.cpp b/libs/input/PropertyMap.cpp index 315f5a6d4f..62989d4f6e 100644 --- a/libs/input/PropertyMap.cpp +++ b/libs/input/PropertyMap.cpp @@ -200,13 +200,13 @@ status_t PropertyMap::Parser::parse() { return BAD_VALUE; } - if (mMap->hasProperty(keyToken.string())) { + if (mMap->hasProperty(keyToken.c_str())) { ALOGE("%s: Duplicate property value for key '%s'.", mTokenizer->getLocation().c_str(), keyToken.c_str()); return BAD_VALUE; } - mMap->addProperty(keyToken.string(), valueToken.string()); + mMap->addProperty(keyToken.c_str(), valueToken.c_str()); } mTokenizer->nextLine(); |