mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
Replaced ::std with std for readability/consistency.
Change-Id: I65f9673c237d3513f99827e28963eb22ae9df0c2
This commit is contained in:
@@ -75,7 +75,7 @@ void Gyro::InitGyro() {
|
||||
can only be used on on-board Analog Inputs 0-1.
|
||||
*/
|
||||
Gyro::Gyro(int32_t channel) {
|
||||
m_analog = ::std::make_shared<AnalogInput>(channel);
|
||||
m_analog = std::make_shared<AnalogInput>(channel);
|
||||
InitGyro();
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ Gyro::Gyro(int32_t channel) {
|
||||
"Raw pointers are deprecated; consider calling the Gyro constructor with "
|
||||
"a channel number or passing a shared_ptr instead.")]]
|
||||
Gyro::Gyro(AnalogInput *channel)
|
||||
: Gyro(::std::shared_ptr<AnalogInput>(channel,
|
||||
: Gyro(std::shared_ptr<AnalogInput>(channel,
|
||||
NullDeleter<AnalogInput>())) {}
|
||||
|
||||
/**
|
||||
@@ -103,7 +103,7 @@ Gyro::Gyro(AnalogInput *channel)
|
||||
* @param channel A pointer to the AnalogInput object that the gyro is
|
||||
* connected to.
|
||||
*/
|
||||
Gyro::Gyro(::std::shared_ptr<AnalogInput> channel) : m_analog(channel) {
|
||||
Gyro::Gyro(std::shared_ptr<AnalogInput> channel) : m_analog(channel) {
|
||||
if (channel == nullptr) {
|
||||
wpi_setWPIError(NullParameter);
|
||||
} else {
|
||||
@@ -228,9 +228,9 @@ void Gyro::StopLiveWindowMode() {}
|
||||
|
||||
std::string Gyro::GetSmartDashboardType() const { return "Gyro"; }
|
||||
|
||||
void Gyro::InitTable(::std::shared_ptr<ITable> subTable) {
|
||||
void Gyro::InitTable(std::shared_ptr<ITable> subTable) {
|
||||
m_table = subTable;
|
||||
UpdateTable();
|
||||
}
|
||||
|
||||
::std::shared_ptr<ITable> Gyro::GetTable() const { return m_table; }
|
||||
std::shared_ptr<ITable> Gyro::GetTable() const { return m_table; }
|
||||
|
||||
Reference in New Issue
Block a user