Part: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 19:06:48 +01:00
parent a057e5486d
commit 6d2d45ceb7
155 changed files with 1504 additions and 1504 deletions

View File

@@ -533,7 +533,7 @@ bool ViewProviderOffset::setEdit(int ModNum)
Gui::TaskView::TaskDialog *dlg = Gui::Control().activeDialog();
TaskOffset* offsetDlg = qobject_cast<TaskOffset*>(dlg);
if (offsetDlg && offsetDlg->getObject() != this->getObject())
offsetDlg = 0; // another pad left open its task panel
offsetDlg = nullptr; // another pad left open its task panel
if (dlg && !offsetDlg) {
if (dlg->canClose())
Gui::Control().closeDialog();
@@ -617,7 +617,7 @@ bool ViewProviderThickness::setEdit(int ModNum)
Gui::TaskView::TaskDialog *dlg = Gui::Control().activeDialog();
TaskThickness* thicknessDlg = qobject_cast<TaskThickness*>(dlg);
if (thicknessDlg && thicknessDlg->getObject() != this->getObject())
thicknessDlg = 0; // another pad left open its task panel
thicknessDlg = nullptr; // another pad left open its task panel
if (dlg && !thicknessDlg) {
if (dlg->canClose())
Gui::Control().closeDialog();