mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Run wpiformat on merged repo (#1021)
This commit is contained in:
committed by
Peter Johnson
parent
0babbf317c
commit
6729a7d6b1
@@ -115,8 +115,7 @@ void LiveWindow::SetEnabled(bool enabled) {
|
||||
* @brief Use a STL smart pointer to share ownership of component.
|
||||
* @deprecated Use Sendable::SetName() instead.
|
||||
*/
|
||||
void LiveWindow::AddSensor(const wpi::Twine& subsystem,
|
||||
const wpi::Twine& name,
|
||||
void LiveWindow::AddSensor(const wpi::Twine& subsystem, const wpi::Twine& name,
|
||||
std::shared_ptr<Sendable> component) {
|
||||
Add(component);
|
||||
component->SetName(subsystem, name);
|
||||
@@ -126,8 +125,8 @@ void LiveWindow::AddSensor(const wpi::Twine& subsystem,
|
||||
* @brief Pass a reference to LiveWindow and retain ownership of the component.
|
||||
* @deprecated Use Sendable::SetName() instead.
|
||||
*/
|
||||
void LiveWindow::AddSensor(const wpi::Twine& subsystem,
|
||||
const wpi::Twine& name, Sendable& component) {
|
||||
void LiveWindow::AddSensor(const wpi::Twine& subsystem, const wpi::Twine& name,
|
||||
Sendable& component) {
|
||||
Add(&component);
|
||||
component.SetName(subsystem, name);
|
||||
}
|
||||
@@ -136,8 +135,8 @@ void LiveWindow::AddSensor(const wpi::Twine& subsystem,
|
||||
* @brief Use a raw pointer to the LiveWindow.
|
||||
* @deprecated Use Sendable::SetName() instead.
|
||||
*/
|
||||
void LiveWindow::AddSensor(const wpi::Twine& subsystem,
|
||||
const wpi::Twine& name, Sendable* component) {
|
||||
void LiveWindow::AddSensor(const wpi::Twine& subsystem, const wpi::Twine& name,
|
||||
Sendable* component) {
|
||||
Add(component);
|
||||
component->SetName(subsystem, name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user