mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
Replace typedefs in C++ with using declarations (#1339)
These are more readable than typedefs. C headers were left alone.
This commit is contained in:
committed by
Peter Johnson
parent
26c33a9a56
commit
8b1274d744
@@ -221,7 +221,7 @@ class Command : public ErrorBase, public SendableBase {
|
||||
*/
|
||||
bool DoesRequire(Subsystem* subsystem) const;
|
||||
|
||||
typedef wpi::SmallPtrSetImpl<Subsystem*> SubsystemSet;
|
||||
using SubsystemSet = wpi::SmallPtrSetImpl<Subsystem*>;
|
||||
|
||||
/**
|
||||
* Returns the requirements (as an std::set of Subsystem pointers) of this
|
||||
|
||||
@@ -13,11 +13,11 @@ class Command;
|
||||
|
||||
class CommandGroupEntry {
|
||||
public:
|
||||
typedef enum {
|
||||
enum Sequence {
|
||||
kSequence_InSequence,
|
||||
kSequence_BranchPeer,
|
||||
kSequence_BranchChild
|
||||
} Sequence;
|
||||
};
|
||||
|
||||
CommandGroupEntry() = default;
|
||||
CommandGroupEntry(Command* command, Sequence state, double timeout = -1.0);
|
||||
|
||||
Reference in New Issue
Block a user