TD: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 19:07:44 +01:00
parent d1d4b996e7
commit e8f9c8a1d3
146 changed files with 320 additions and 320 deletions

View File

@@ -94,7 +94,7 @@ bool ViewProviderGeomHatch::setEdit(int ModNum)
Gui::TaskView::TaskDialog *dlg = Gui::Control().activeDialog();
TaskDlgGeomHatch *projDlg = qobject_cast<TaskDlgGeomHatch *>(dlg);
if (projDlg && (projDlg->getViewProvider() != this))
projDlg = 0; // somebody left task panel open
projDlg = nullptr; // somebody left task panel open
// clear the selection (convenience)
Gui::Selection().clearSelection();
@@ -193,8 +193,8 @@ TechDraw::DrawGeomHatch* ViewProviderGeomHatch::getViewObject() const
Gui::MDIView *ViewProviderGeomHatch::getMDIView() const
{
auto obj = getViewObject();
if(!obj) return 0;
if(!obj) return nullptr;
auto vp = Gui::Application::Instance->getViewProvider(obj->getSourceView());
if(!vp) return 0;
if(!vp) return nullptr;
return vp->getMDIView();
}