summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nick Desaulniers <ndesaulniers@google.com> 2019-10-15 19:09:46 -0700
committer Nick Desaulniers <ndesaulniers@google.com> 2019-10-15 19:09:46 -0700
commit21834485e33408ec08bdfd2a1f622fa273d36a4b (patch)
treebe040186ea797d519f3603119dbd853cfe997f6c
parent1ed80f45a6622256906b29c8e0468d1ece527ee8 (diff)
[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: Nick Desaulniers <ndesaulniers@google.com>
-rw-r--r--services/inputflinger/host/InputDriver.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/inputflinger/host/InputDriver.cpp b/services/inputflinger/host/InputDriver.cpp
index 2f046c3527..683c05d8a0 100644
--- a/services/inputflinger/host/InputDriver.cpp
+++ b/services/inputflinger/host/InputDriver.cpp
@@ -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;