mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Replaced ::std with std for readability/consistency.
Change-Id: I65f9673c237d3513f99827e28963eb22ae9df0c2
This commit is contained in:
@@ -13,8 +13,8 @@
|
||||
#include "networktables/NetworkTable.h"
|
||||
#include "HLUsageReporting.h"
|
||||
|
||||
::std::shared_ptr<ITable> SmartDashboard::m_table = nullptr;
|
||||
std::map<::std::shared_ptr<ITable> , Sendable *> SmartDashboard::m_tablesToData;
|
||||
std::shared_ptr<ITable> SmartDashboard::m_table = nullptr;
|
||||
std::map<std::shared_ptr<ITable> , Sendable *> SmartDashboard::m_tablesToData;
|
||||
|
||||
void SmartDashboard::init() {
|
||||
m_table.reset(NetworkTable::GetTable("SmartDashboard"));
|
||||
@@ -35,7 +35,7 @@ void SmartDashboard::PutData(std::string key, Sendable *data) {
|
||||
wpi_setGlobalWPIErrorWithContext(NullParameter, "value");
|
||||
return;
|
||||
}
|
||||
::std::shared_ptr<ITable> dataTable(m_table->GetSubTable(key));
|
||||
std::shared_ptr<ITable> dataTable(m_table->GetSubTable(key));
|
||||
dataTable->PutString("~TYPE~", data->GetSmartDashboardType());
|
||||
data->InitTable(dataTable);
|
||||
m_tablesToData[dataTable] = data;
|
||||
@@ -63,7 +63,7 @@ void SmartDashboard::PutData(NamedSendable *value) {
|
||||
* @return the value
|
||||
*/
|
||||
Sendable *SmartDashboard::GetData(std::string key) {
|
||||
::std::shared_ptr<ITable> subtable(m_table->GetSubTable(key));
|
||||
std::shared_ptr<ITable> subtable(m_table->GetSubTable(key));
|
||||
Sendable *data = m_tablesToData[subtable];
|
||||
if (data == nullptr) {
|
||||
wpi_setGlobalWPIErrorWithContext(SmartDashboardMissingKey, key.c_str());
|
||||
|
||||
Reference in New Issue
Block a user