Update VirtualKeyMap usage
Since the VirtualKeyMap has been refactored, updated the validation tool to use the new signature. Bug: 113575658 Test: atest libinput_tests inputflinger_tests Change-Id: Ifb0eb5b2913020f1e1402dcb6a36c9038c345807
This commit is contained in:
@@ -128,13 +128,11 @@ static bool validateFile(const char* filename) {
|
||||
}
|
||||
|
||||
case FILETYPE_VIRTUALKEYDEFINITION: {
|
||||
VirtualKeyMap* map;
|
||||
status_t status = VirtualKeyMap::load(filename, &map);
|
||||
if (status) {
|
||||
error("Error %d parsing virtual key definition file.\n\n", status);
|
||||
std::unique_ptr<VirtualKeyMap> map = VirtualKeyMap::load(filename);
|
||||
if (!map) {
|
||||
error("Error while parsing virtual key definition file.\n\n");
|
||||
return false;
|
||||
}
|
||||
delete map;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user