TD: modernize C++11
* use nullptr
This commit is contained in:
@@ -96,7 +96,7 @@ bool ViewProviderHatch::setEdit(int ModNum)
|
||||
Gui::TaskView::TaskDialog *dlg = Gui::Control().activeDialog();
|
||||
TaskDlgHatch *projDlg = qobject_cast<TaskDlgHatch *>(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();
|
||||
@@ -163,8 +163,8 @@ bool ViewProviderHatch::canDelete(App::DocumentObject *obj) const
|
||||
Gui::MDIView *ViewProviderHatch::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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user