diff --git a/isettings.h b/isettings.h index 731f1df..cb16eb3 100644 --- a/isettings.h +++ b/isettings.h @@ -40,12 +40,12 @@ public: * @brief instance This method return instance of the settings object * @return pointer to a settings object; */ - template + template static ISettings* instance() { - static_assert (std::is_base_of::value, + static_assert (std::is_base_of::value, "the Settingstype type must be ISettings"); - if(_settings == nullptr){ + if(!_settings){ _settings = new Settingstype(); }