[Gui] remove superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-18 03:17:42 +02:00
parent 4b2ffd2eca
commit bb2b49fb1f
22 changed files with 32 additions and 32 deletions

View File

@@ -32,14 +32,14 @@ Gui::WorkbenchFactoryInst* Gui::WorkbenchFactoryInst::_pcSingleton = nullptr;
WorkbenchFactoryInst& WorkbenchFactoryInst::instance()
{
if (_pcSingleton == nullptr)
if (!_pcSingleton)
_pcSingleton = new WorkbenchFactoryInst;
return *_pcSingleton;
}
void WorkbenchFactoryInst::destruct ()
{
if ( _pcSingleton != nullptr )
if (_pcSingleton)
delete _pcSingleton;
_pcSingleton = nullptr;
}