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

Commit 0e2911eb authored by Nick Desaulniers's avatar Nick Desaulniers
Browse files

[hardware][interfaces][sensors] fix -Wreorder-init-list



C++20 will require members in a designated initializer to be in order
unlike C99.

Bug: 139945549
Test: mm
Change-Id: I78d64ea2b7df3f2bd3b8503aa553a0523b20d711
Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>
parent c325670c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -68,9 +68,9 @@ void convertFromSensorEvent(const sensors_event_t &src, Event *dst) {
    typedef ::android::hardware::sensors::V1_0::MetaDataEventType MetaDataEventType;

    *dst = {
            .timestamp = src.timestamp,
            .sensorHandle = src.sensor,
            .sensorType = (SensorType)src.type,
        .timestamp = src.timestamp
    };

    switch (dst->sensorType) {
+1 −1
Original line number Diff line number Diff line
@@ -147,8 +147,8 @@ BufferDescriptor GrallocHalWrapper<AllocatorT, MapperT>::getDescriptor(uint32_t
            .width = size,
            .height = 1,
            .layerCount = 1,
            .usage = kBufferUsage,
            .format = static_cast<decltype(descriptorInfo.format)>(PixelFormat::BLOB),
            .usage = kBufferUsage,
    };

    BufferDescriptor descriptor;