From b62144cd4bf60e6a872f3dad49b174ac6c2d9e7f Mon Sep 17 00:00:00 2001 From: Igor loschinin Date: Sat, 6 Nov 2021 18:24:58 +0300 Subject: [PATCH] Update isettings.h Co-authored-by: Andrei Yankovich --- isettings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isettings.h b/isettings.h index 0019e0c..7747809 100644 --- a/isettings.h +++ b/isettings.h @@ -45,7 +45,7 @@ public: static_assert (std::is_base_of::value, "the Settingstype type must be ISettings"); - if(_settings == nullptr){ + if(!_settings){ _settings = new Settingstype(); }