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

Commit 691e1a09 authored by Nick Desaulniers's avatar Nick Desaulniers
Browse files

[frameworks][base][statsd] fix -Wreorder-init-list



C++20 would like members of designated initializers to be ordered, so
that initialization side effects match member initialization in explicit
constructors. This differs from C99.

Bug: 139945549
Test: mm
Change-Id: Iadc96f8f0bf57181970ca3e96b5c5f68ac40a030
Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>
parent 25843c76
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -119,9 +119,10 @@ std::map<int, PullAtomInfo> StatsPullerManager::kAllPullAtomInfo = {
         {.puller = new StatsCompanionServicePuller(android::util::BLUETOOTH_ACTIVITY_INFO)}},
        // system_elapsed_realtime
        {android::util::SYSTEM_ELAPSED_REALTIME,
         {.pullTimeoutNs = NS_PER_SEC / 2,
          .coolDownNs = NS_PER_SEC,
          .puller = new StatsCompanionServicePuller(android::util::SYSTEM_ELAPSED_REALTIME)}},
         {.coolDownNs = NS_PER_SEC,
          .puller = new StatsCompanionServicePuller(android::util::SYSTEM_ELAPSED_REALTIME),
          .pullTimeoutNs = NS_PER_SEC / 2,
         }},
        // system_uptime
        {android::util::SYSTEM_UPTIME,
         {.puller = new StatsCompanionServicePuller(android::util::SYSTEM_UPTIME)}},