Gui: modernize C++11
* use nullptr
This commit is contained in:
@@ -38,7 +38,7 @@ using namespace Gui::TaskView;
|
||||
/* TRANSLATOR Gui::TaskView::TaskSelectLinkProperty */
|
||||
|
||||
TaskSelectLinkProperty::TaskSelectLinkProperty(const char *sFilter,App::Property *prop,QWidget *parent)
|
||||
: TaskBox(Gui::BitmapFactory().pixmap("mouse_pointer"),tr("edit selection"),true, parent),Filter(0),LinkSub(0),LinkList(0)
|
||||
: TaskBox(Gui::BitmapFactory().pixmap("mouse_pointer"),tr("edit selection"),true, parent),Filter(nullptr),LinkSub(nullptr),LinkList(nullptr)
|
||||
{
|
||||
// we need a separate container widget to add all controls to
|
||||
proxy = new QWidget(this);
|
||||
@@ -63,7 +63,7 @@ TaskSelectLinkProperty::TaskSelectLinkProperty(const char *sFilter,App::Property
|
||||
|
||||
// property have to be set!
|
||||
assert(prop);
|
||||
StartObject = 0;
|
||||
StartObject = nullptr;
|
||||
if (prop->getTypeId().isDerivedFrom(App::PropertyLinkSub::getClassTypeId())) {
|
||||
LinkSub = dynamic_cast<App::PropertyLinkSub *>(prop);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user