Part: modernize C++11
* use nullptr
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user