Base: Modernise ctors dtors defs etc

This commit is contained in:
berniev
2022-08-01 13:56:03 +10:00
committed by wwmayer
parent 3e9c2ff155
commit 8aff4a7503
60 changed files with 271 additions and 363 deletions

View File

@@ -93,9 +93,7 @@ PyException::PyException()
PyErr_Clear(); // must be called to keep Python interpreter in a valid state (Werner)
}
PyException::~PyException() throw()
{
}
PyException::~PyException() throw() = default;
void PyException::ThrowException()
{
@@ -203,12 +201,8 @@ public:
add_varargs_method("flush",&PythonStdOutput::flush,"flush()");
}
PythonStdOutput()
{
}
~PythonStdOutput()
{
}
PythonStdOutput() = default;
~PythonStdOutput() override = default;
Py::Object write(const Py::Tuple&)
{
@@ -227,10 +221,7 @@ InterpreterSingleton::InterpreterSingleton()
this->_global = nullptr;
}
InterpreterSingleton::~InterpreterSingleton()
{
}
InterpreterSingleton::~InterpreterSingleton() = default;
std::string InterpreterSingleton::runString(const char *sCmd)