Update isettings.h

Co-authored-by: Andrei Yankovich <EndrIIMail@gmail.com>
This commit is contained in:
Igor loschinin 2021-11-06 18:24:58 +03:00 committed by GitHub
parent 26156be771
commit b62144cd4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ public:
static_assert (std::is_base_of<SettingsType, ISettings>::value,
"the Settingstype type must be ISettings");
if(_settings == nullptr){
if(!_settings){
_settings = new Settingstype();
}