Base: modernize C++11

* remove redundant void-arg
* use nullptr
* replace deprecated headers
This commit is contained in:
wmayer
2022-01-25 20:21:30 +01:00
parent 6c29c65013
commit cad0d01883
72 changed files with 628 additions and 633 deletions

View File

@@ -27,20 +27,20 @@
using namespace Base;
ExceptionFactory* ExceptionFactory::_pcSingleton = NULL;
ExceptionFactory* ExceptionFactory::_pcSingleton = nullptr;
ExceptionFactory& ExceptionFactory::Instance(void)
ExceptionFactory& ExceptionFactory::Instance()
{
if (_pcSingleton == NULL)
if (_pcSingleton == nullptr)
_pcSingleton = new ExceptionFactory;
return *_pcSingleton;
}
void ExceptionFactory::Destruct (void)
void ExceptionFactory::Destruct ()
{
if (_pcSingleton != 0)
if (_pcSingleton != nullptr)
delete _pcSingleton;
_pcSingleton = 0;
_pcSingleton = nullptr;
}
void ExceptionFactory::raiseException (PyObject * pydict) const