diff options
author | 2023-08-17 16:27:22 +0000 | |
---|---|---|
committer | 2023-09-12 22:31:10 +0000 | |
commit | 835dfe50a73c6f6de581aaa143c333af79bcca4d (patch) | |
tree | 0bec830cab5de4388aafc4af0e357bfc327be1a0 /tools/validatekeymaps/Main.cpp | |
parent | a235f8ba91dd467b245f680887e2a75507814b4e (diff) |
Don't depend on String8 cast to C string
Bug: 295394788
Test: m checkbuild
Change-Id: I6aa039b6b2a4944e3537ef133f8785890d957edd
Diffstat (limited to 'tools/validatekeymaps/Main.cpp')
-rw-r--r-- | tools/validatekeymaps/Main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/validatekeymaps/Main.cpp b/tools/validatekeymaps/Main.cpp index 0d7d5f949a08..6cae3ecc6e44 100644 --- a/tools/validatekeymaps/Main.cpp +++ b/tools/validatekeymaps/Main.cpp @@ -165,7 +165,7 @@ static bool validateFile(const char* filename) { case FileType::INPUT_DEVICE_CONFIGURATION: { android::base::Result<std::unique_ptr<PropertyMap>> propertyMap = - PropertyMap::load(String8(filename)); + PropertyMap::load(String8(filename).c_str()); if (!propertyMap.ok()) { error("Error %d parsing input device configuration file.\n\n", propertyMap.error().code()); |