Clean up Command container iteration code (#73)

This commit is contained in:
Tyler Veness
2018-06-23 19:41:45 -05:00
committed by Peter Johnson
parent ea7d11b1db
commit b7807bf9d2
9 changed files with 198 additions and 226 deletions

View File

@@ -7,7 +7,6 @@
#pragma once
#include <list>
#include <vector>
#include <wpi/Twine.h>
@@ -169,7 +168,7 @@ class CommandGroup : public Command {
std::vector<CommandGroupEntry> m_commands;
// The active children in this group (stored in entries)
std::list<CommandGroupEntry> m_children;
std::vector<CommandGroupEntry*> m_children;
// The current command, -1 signifies that none have been run
int m_currentCommandIndex = -1;