diff options
author | 2020-07-04 18:22:41 -0700 | |
---|---|---|
committer | 2020-07-04 18:24:49 -0700 | |
commit | 1d927aa2377c9e1fa57f9e2e409dc9a33d1bcc7a (patch) | |
tree | 5b031bdd96c6dcc79d9f9468c46348cc7491d9f9 /libs/input/InputDevice.cpp | |
parent | 12d24c504621cc5ff117b41726d734475eb8836c (diff) |
Convert InputDeviceConfigurationFileType to enum class.
Convert InputDeviceConfigurationFileType to enum class and the reference
to it accordingly.
Test: atest inputflinger_tests
Change-Id: I9a7c0371aa3c519ca69cc4e019079f9645d4ff09
Diffstat (limited to 'libs/input/InputDevice.cpp')
-rw-r--r-- | libs/input/InputDevice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/input/InputDevice.cpp b/libs/input/InputDevice.cpp index 4db9e06d8d..dbd6293a64 100644 --- a/libs/input/InputDevice.cpp +++ b/libs/input/InputDevice.cpp @@ -46,9 +46,9 @@ static bool isValidNameChar(char ch) { static void appendInputDeviceConfigurationFileRelativePath(std::string& path, const std::string& name, InputDeviceConfigurationFileType type) { - path += CONFIGURATION_FILE_DIR[type]; + path += CONFIGURATION_FILE_DIR[static_cast<int32_t>(type)]; path += name; - path += CONFIGURATION_FILE_EXTENSION[type]; + path += CONFIGURATION_FILE_EXTENSION[static_cast<int32_t>(type)]; } std::string getInputDeviceConfigurationFilePathByDeviceIdentifier( |