mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
[wpilibc] Revert "Return reference from GetInstance" (#3342)
This reverts commit a79faace1b.
This change will be superseded in a non-breaking way by changing to static functions and deprecating GetInstance() entirely.
This commit is contained in:
@@ -34,9 +34,9 @@ class Preferences {
|
||||
/**
|
||||
* Get the one and only {@link Preferences} object.
|
||||
*
|
||||
* @return reference to the {@link Preferences}
|
||||
* @return pointer to the {@link Preferences}
|
||||
*/
|
||||
static Preferences& GetInstance();
|
||||
static Preferences* GetInstance();
|
||||
|
||||
/**
|
||||
* Returns a vector of all the keys.
|
||||
@@ -292,7 +292,6 @@ class Preferences {
|
||||
|
||||
protected:
|
||||
Preferences();
|
||||
~Preferences();
|
||||
|
||||
Preferences(Preferences&&) = default;
|
||||
Preferences& operator=(Preferences&&) = default;
|
||||
|
||||
Reference in New Issue
Block a user