Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 457b1601 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

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
parent dca77914
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -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;
    }
    }