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

@@ -2,7 +2,7 @@
#include "Base.h"
std::shared_ptr<RobotStateInterface> RobotState::impl = nullptr;
std::shared_ptr<RobotStateInterface> RobotState::impl;
void RobotState::SetImplementation(RobotStateInterface& i) {
impl = std::shared_ptr<RobotStateInterface>(

View File

@@ -13,7 +13,7 @@
#include "networktables/NetworkTable.h"
#include "HLUsageReporting.h"
std::shared_ptr<ITable> SmartDashboard::m_table = nullptr;
std::shared_ptr<ITable> SmartDashboard::m_table;
std::map<std::shared_ptr<ITable> , Sendable *> SmartDashboard::m_tablesToData;
void SmartDashboard::init() {