Merge branch 'task_111' of github.com:QuasarApp/QuasarAppLib into task_111

This commit is contained in:
IgorekLoschinin 2021-11-06 18:25:25 +03:00
commit 2709f1141a

View File

@ -40,12 +40,12 @@ public:
* @brief instance This method return instance of the settings object
* @return pointer to a settings object;
*/
template <class Settingstype>
template <class SettingsType>
static ISettings* instance() {
static_assert (std::is_base_of<Settingstype, ISettings>::value,
static_assert (std::is_base_of<SettingsType, ISettings>::value,
"the Settingstype type must be ISettings");
if(_settings == nullptr){
if(!_settings){
_settings = new Settingstype();
}