MediaMetrics: Fix clang-tidy warnings
Test: atest mediametrics_tests
Bug: 153658358
Change-Id: Ic3c05de5466df24ffd37b224c97ac1138257a73c
diff --git a/services/mediametrics/TransactionLog.h b/services/mediametrics/TransactionLog.h
index 2359eec..4f09bb0 100644
--- a/services/mediametrics/TransactionLog.h
+++ b/services/mediametrics/TransactionLog.h
@@ -142,7 +142,7 @@
--ll;
}
auto [s, l] = dumpMapTimeItem(mLog, ll, sinceNs, prefix);
- ss << std::move(s);
+ ss << s;
ll -= l;
// Grouped by item key (category)
@@ -158,7 +158,7 @@
if (prefix != nullptr && !startsWith(it->first, prefix)) break;
auto [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" << std::move(s);
+ ss << " " << it->first << "\n" << s;
ll -= l + 1;
}
return { ss.str(), lines - ll };