Drop intermediate list of files from log reading
We are saving a temporary variable in a ton of places for the lifetime
of the program. Inline it so we can change the return type.
Change-Id: If8d90ffd07806644aceed4c44087e5fd206c8df9
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/frc971/analysis/log_to_match.cc b/frc971/analysis/log_to_match.cc
index b23e8ad..cbe7e50 100644
--- a/frc971/analysis/log_to_match.cc
+++ b/frc971/analysis/log_to_match.cc
@@ -7,9 +7,8 @@
int main(int argc, char **argv) {
aos::InitGoogle(&argc, &argv);
- std::vector<std::string> unsorted_logfiles =
- aos::logger::FindLogs(argc, argv);
- aos::logger::LogReader reader(aos::logger::SortParts(unsorted_logfiles));
+ aos::logger::LogReader reader(
+ aos::logger::SortParts(aos::logger::FindLogs(argc, argv)));
reader.Register();
const aos::Node *roborio =
aos::configuration::GetNode(reader.configuration(), "roborio");