Gui: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 18:41:21 +01:00
parent 3bdf1fecce
commit 96adb98f46
239 changed files with 1197 additions and 1197 deletions

View File

@@ -273,7 +273,7 @@ QSize TaskPanel::minimumSizeHint() const
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
TaskView::TaskView(QWidget *parent)
: QScrollArea(parent),ActiveDialog(0),ActiveCtrl(0)
: QScrollArea(parent),ActiveDialog(nullptr),ActiveCtrl(nullptr)
{
//addWidget(new TaskEditControl(this));
//addWidget(new TaskAppearance(this));
@@ -530,10 +530,10 @@ void TaskView::removeDialog(void)
if (ActiveCtrl) {
taskPanel->removeWidget(ActiveCtrl);
delete ActiveCtrl;
ActiveCtrl = 0;
ActiveCtrl = nullptr;
}
TaskDialog* remove = NULL;
TaskDialog* remove = nullptr;
if (ActiveDialog) {
// See 'accept' and 'reject'
if (ActiveDialog->property("taskview_accept_or_reject").isNull()) {
@@ -542,7 +542,7 @@ void TaskView::removeDialog(void)
taskPanel->removeWidget(*it);
}
remove = ActiveDialog;
ActiveDialog = 0;
ActiveDialog = nullptr;
}
else {
ActiveDialog->setProperty("taskview_remove_dialog", true);