mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Changed Settings::getInstance() from returning a smart_ptr to returning a regular pointer.
This commit is contained in:
parent
119dfc90f8
commit
0cbcb7a516
|
@ -64,10 +64,10 @@ Settings::Settings()
|
||||||
loadFile();
|
loadFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<Settings> Settings::getInstance()
|
Settings* Settings::getInstance()
|
||||||
{
|
{
|
||||||
static std::shared_ptr<Settings> instance{new Settings()};
|
static Settings instance;
|
||||||
return instance;
|
return &instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Settings::setDefaults()
|
void Settings::setDefaults()
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
class Settings
|
class Settings
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static std::shared_ptr<Settings> getInstance();
|
static Settings* getInstance();
|
||||||
|
|
||||||
void loadFile();
|
void loadFile();
|
||||||
void saveFile();
|
void saveFile();
|
||||||
|
|
Loading…
Reference in a new issue