[Gui] remove some more superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-18 13:15:38 +02:00
parent af945a8900
commit c40e476a5b
12 changed files with 25 additions and 25 deletions

View File

@@ -128,7 +128,7 @@ Py::Object ControlPy::activeDialog(const Py::Tuple& args)
if (!PyArg_ParseTuple(args.ptr(), ""))
throw Py::Exception();
Gui::TaskView::TaskDialog* dlg = Gui::Control().activeDialog();
return Py::Boolean(dlg!=nullptr);
return Py::Boolean(dlg != nullptr);
}
Py::Object ControlPy::closeDialog(const Py::Tuple& args)