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:
Tyler Veness
2015-11-23 00:46:05 -08:00
parent 6d854afb0e
commit 84e793503d
29 changed files with 32 additions and 32 deletions

View File

@@ -51,5 +51,5 @@ private:
SimFloatInput* m_impl;
int64_t m_accumulatorOffset;
std::shared_ptr<ITable> m_table = nullptr;
std::shared_ptr<ITable> m_table;
};

View File

@@ -36,5 +36,5 @@ private:
bool m_lastValue;
SimDigitalInput *m_impl;
std::shared_ptr<ITable> m_table = nullptr;
std::shared_ptr<ITable> m_table;
};

View File

@@ -56,5 +56,5 @@ private:
SimGyro* impl;
std::shared_ptr<ITable> m_table = nullptr;
std::shared_ptr<ITable> m_table;
};

View File

@@ -96,7 +96,7 @@ protected:
void InitTable(std::shared_ptr<ITable> subTable) override;
std::shared_ptr<ITable> GetTable() const override;
std::shared_ptr<ITable> m_table = nullptr;
std::shared_ptr<ITable> m_table;
private:
uint32_t m_channel;

View File

@@ -69,7 +69,7 @@ public:
void InitTable(std::shared_ptr<ITable> subTable) override;
std::shared_ptr<ITable> GetTable() const override;
std::shared_ptr<ITable> m_table = nullptr;
std::shared_ptr<ITable> m_table;
private:
uint32_t m_channel;