Changed Settings::getInstance() from returning a smart_ptr to returning a regular pointer.

This commit is contained in:
Leon Styhre 2022-01-04 21:54:55 +01:00
parent 119dfc90f8
commit 0cbcb7a516
2 changed files with 4 additions and 4 deletions

View file

@ -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()

View file

@ -18,7 +18,7 @@
class Settings
{
public:
static std::shared_ptr<Settings> getInstance();
static Settings* getInstance();
void loadFile();
void saveFile();