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

Commit d2d7433a authored by Yabin Cui's avatar Yabin Cui
Browse files

MediaMetrics: fix error for compiler update.

frameworks/av/services/mediametrics/TransactionLog.h:161:19:
  error: declaration shadows a structured binding [-Werror,-Wshadow]
            auto [s, l] = dumpMapTimeItem(it->second, ll - 1, sinceNs, prefix);
                  ^

Bug: 193903230
Test: build with the next compiler
Change-Id: Ib9cc931d97f16f7b85b987baaed280802a0f5c8b
parent 4a259214
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -158,7 +158,7 @@ public:
                ++it) {
            if (ll <= 0) break;
            if (prefix != nullptr && !startsWith(it->first, prefix)) break;
            auto [s, l] = dumpMapTimeItem(it->second, ll - 1, sinceNs, prefix);
            std::tie(s, l) = dumpMapTimeItem(it->second, ll - 1, sinceNs, prefix);
            if (l == 0) continue; // don't show empty groups (due to sinceNs).
            ss << " " << it->first << "\n" << s;
            ll -= l + 1;