mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 16:23:46 +08:00
logger: use reference in range based loop (#28894)
old-commit-hash: f1a1456f274881d08b8b3858aa3feeeb8f4a128c
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user