mirror of
https://github.com/QuasarApp/QuasarAppLib.git
synced 2025-04-27 10:14:38 +00:00
Merge branch 'task_111' of github.com:QuasarApp/QuasarAppLib into task_111
This commit is contained in:
commit
2709f1141a
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user