logger: use reference in range based loop (#28894)

pull/28901/head
Dean Lee 2 years ago committed by GitHub
parent c158537df6
commit f1a1456f27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      system/loggerd/logger.cc

@ -83,7 +83,7 @@ kj::Array<capnp::word> logger_build_init_data() {
}
int i = log_commands.size();
for (auto [key, value] : hw_logs) {
for (auto &[key, value] : hw_logs) {
auto lentry = commands[i];
lentry.setKey(key);
lentry.setValue(capnp::Data::Reader((const kj::byte*)value.data(), value.size()));

Loading…
Cancel
Save