commit | 05dad8b668355dacc112ac76f2449b952ea17ff9 | [log] [tgz] |
---|---|---|
author | Austin Schuh <austin.linux@gmail.com> | Wed Jan 27 22:47:23 2021 -0800 |
committer | Austin Schuh <austin.linux@gmail.com> | Wed Jan 27 22:47:23 2021 -0800 |
tree | 1a0a277d1fddecf9045b9a7db7a28f23e29f71bb | |
parent | 9c61d98759002ec16c17e3b12e1512c51926fbfd [diff] |
Fix undesirable copy with auto in timestamp extractor Change-Id: I7ec3dcd977dca5870c9d4f7e4dc235f8bbbf20dc
diff --git a/aos/events/logging/timestamp_extractor.cc b/aos/events/logging/timestamp_extractor.cc index 2b84975..232b842 100644 --- a/aos/events/logging/timestamp_extractor.cc +++ b/aos/events/logging/timestamp_extractor.cc
@@ -18,7 +18,7 @@ std::string LogFileVectorToString(std::vector<logger::LogFile> log_files) { std::stringstream ss; - for (const auto f : log_files) { + for (const auto &f : log_files) { ss << f << "\n"; } return ss.str();