mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
std::shared_ptr doesn't need to be initialized with nullptr. The C++ standard already guarantees it will behave as if it is.
Change-Id: I160567e9fb2857f8d7ac4acbe093c4100a7421eb
This commit is contained in:
@@ -47,7 +47,7 @@ class Trigger : public Sendable {
|
||||
virtual std::string GetSmartDashboardType() const;
|
||||
|
||||
protected:
|
||||
std::shared_ptr<ITable> m_table = nullptr;
|
||||
std::shared_ptr<ITable> m_table;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -184,7 +184,7 @@ class Command : public ErrorBase, public NamedSendable, public ITableListener {
|
||||
std::shared_ptr<nt::Value> value, bool isNew);
|
||||
|
||||
protected:
|
||||
std::shared_ptr<ITable> m_table = nullptr;
|
||||
std::shared_ptr<ITable> m_table;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -64,7 +64,7 @@ class Scheduler : public ErrorBase, public NamedSendable {
|
||||
std::vector<std::string> commands;
|
||||
std::vector<double> ids;
|
||||
std::vector<double> toCancel;
|
||||
std::shared_ptr<ITable> m_table = nullptr;
|
||||
std::shared_ptr<ITable> m_table;
|
||||
bool m_runningCommandsChanged = false;
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -44,7 +44,7 @@ class Subsystem : public ErrorBase, public NamedSendable {
|
||||
virtual std::string GetSmartDashboardType() const;
|
||||
|
||||
protected:
|
||||
std::shared_ptr<ITable> m_table = nullptr;
|
||||
std::shared_ptr<ITable> m_table;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user