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

Commit 21834485 authored by Nick Desaulniers's avatar Nick Desaulniers
Browse files

[inputflinger] fix -Wreorder-init-list



C++20 is stricter about member ordering in designated initializers than
C99.

Bug: 139945549
Test: mm
Change-Id: I2eda816418d1accac614cbfba07bac511c5d622c
Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>
parent 1ed80f45
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -127,10 +127,10 @@ input_device_identifier_t* InputDriver::createDeviceIdentifier(
            input_bus_t bus, const char* uniqueId) {
    auto identifier = new ::input_device_identifier {
        .name = name,
        .productId = productId,
        .vendorId = vendorId,
        .bus = bus,
        .uniqueId = uniqueId,
        .bus = bus,
        .vendorId = vendorId,
        .productId = productId,
    };
    // TODO: store this identifier somewhere
    return identifier;