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

Commit 0efc44d0 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update VirtualKeyMap usage"

parents 14220339 457b1601
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;
    }
    }