[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

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