mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[wpilibc] Return reference from GetInstance (#3247)
Improves consistency across all classes. Affects Preferences, LiveWindow, and CameraServer. Old commands Scheduler::GetInstance() was not updated as this is already deprecated.
This commit is contained in:
@@ -29,7 +29,7 @@ class LiveWindow {
|
||||
* This is a singleton to guarantee that there is only a single instance
|
||||
* regardless of how many times GetInstance is called.
|
||||
*/
|
||||
static LiveWindow* GetInstance();
|
||||
static LiveWindow& GetInstance();
|
||||
|
||||
/**
|
||||
* Enable telemetry for a single component.
|
||||
@@ -69,6 +69,7 @@ class LiveWindow {
|
||||
|
||||
private:
|
||||
LiveWindow();
|
||||
~LiveWindow() = default;
|
||||
|
||||
struct Impl;
|
||||
std::unique_ptr<Impl> m_impl;
|
||||
|
||||
Reference in New Issue
Block a user