mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +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();
|
||||
}
|
||||
|
||||
std::shared_ptr<Settings> Settings::getInstance()
|
||||
Settings* Settings::getInstance()
|
||||
{
|
||||
static std::shared_ptr<Settings> instance{new Settings()};
|
||||
return instance;
|
||||
static Settings instance;
|
||||
return &instance;
|
||||
}
|
||||
|
||||
void Settings::setDefaults()
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
class Settings
|
||||
{
|
||||
public:
|
||||
static std::shared_ptr<Settings> getInstance();
|
||||
static Settings* getInstance();
|
||||
|
||||
void loadFile();
|
||||
void saveFile();
|
||||
|
|
Loading…
Reference in a new issue