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

@@ -70,7 +70,7 @@ namespace Base {
* all instantiated SequencerBase objects.
*/
std::vector<SequencerBase*> SequencerP::_instances;
SequencerLauncher* SequencerP::_topLauncher = 0;
SequencerLauncher* SequencerP::_topLauncher = nullptr;
#if QT_VERSION >= QT_VERSION_CHECK(5,14,0)
QRecursiveMutex SequencerP::mutex;
#else
@@ -188,7 +188,7 @@ bool SequencerBase::isLocked() const
bool SequencerBase::isRunning() const
{
QMutexLocker locker(&SequencerP::mutex);
return (SequencerP::_topLauncher != 0);
return (SequencerP::_topLauncher != nullptr);
}
bool SequencerBase::wasCanceled() const
@@ -282,7 +282,7 @@ SequencerLauncher::~SequencerLauncher()
if (SequencerP::_topLauncher == this)
SequencerBase::Instance().stop();
if (SequencerP::_topLauncher == this) {
SequencerP::_topLauncher = 0;
SequencerP::_topLauncher = nullptr;
}
}