summaryrefslogtreecommitdiff
path: root/cmds/statsd/src/external/SubsystemSleepStatePuller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cmds/statsd/src/external/SubsystemSleepStatePuller.cpp')
-rw-r--r--cmds/statsd/src/external/SubsystemSleepStatePuller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/statsd/src/external/SubsystemSleepStatePuller.cpp b/cmds/statsd/src/external/SubsystemSleepStatePuller.cpp
index c8c392016e52..d8229599635c 100644
--- a/cmds/statsd/src/external/SubsystemSleepStatePuller.cpp
+++ b/cmds/statsd/src/external/SubsystemSleepStatePuller.cpp
@@ -281,7 +281,7 @@ bool getIPowerDataLocked(vector<shared_ptr<LogEvent>>* data) {
(long long)state.residencyInMsecSinceBoot,
(long long)state.totalTransitions,
state.supportedOnlyInSuspend ? 1 : 0);
- for (auto voter : state.voters) {
+ for (const auto& voter : state.voters) {
auto voterPtr = make_shared<LogEvent>(
android::util::SUBSYSTEM_SLEEP_STATE,
wallClockTimestampNs, elapsedTimestampNs);