Sketcher: modernize C++11
* use nullptr
This commit is contained in:
@@ -64,7 +64,7 @@ using namespace Gui::TaskView;
|
||||
/* TRANSLATOR SketcherGui::SketcherValidation */
|
||||
|
||||
SketcherValidation::SketcherValidation(Sketcher::SketchObject* Obj, QWidget* parent)
|
||||
: QWidget(parent), ui(new Ui_TaskSketcherValidation()), sketch(Obj), sketchAnalyser(Obj), coincidenceRoot(0)
|
||||
: QWidget(parent), ui(new Ui_TaskSketcherValidation()), sketch(Obj), sketchAnalyser(Obj), coincidenceRoot(nullptr)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->fixButton->setEnabled(false);
|
||||
@@ -431,7 +431,7 @@ TaskSketcherValidation::TaskSketcherValidation(Sketcher::SketchObject* Obj)
|
||||
{
|
||||
QWidget* widget = new SketcherValidation(Obj);
|
||||
Gui::TaskView::TaskBox* taskbox = new Gui::TaskView::TaskBox(
|
||||
QPixmap(), widget->windowTitle(), true, 0);
|
||||
QPixmap(), widget->windowTitle(), true, nullptr);
|
||||
taskbox->groupLayout()->addWidget(widget);
|
||||
Content.push_back(taskbox);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user