[Base] remove superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-18 03:16:22 +02:00
parent e69a920f18
commit 4b2ffd2eca
9 changed files with 36 additions and 36 deletions

View File

@@ -82,14 +82,14 @@ ScriptFactorySingleton* ScriptFactorySingleton::_pcSingleton = nullptr;
ScriptFactorySingleton& ScriptFactorySingleton::Instance()
{
if (_pcSingleton == nullptr)
if (!_pcSingleton)
_pcSingleton = new ScriptFactorySingleton;
return *_pcSingleton;
}
void ScriptFactorySingleton::Destruct ()
{
if (_pcSingleton != nullptr)
if (_pcSingleton)
delete _pcSingleton;
_pcSingleton = nullptr;
}