Gui: modernize C++11
* use nullptr
This commit is contained in:
@@ -47,7 +47,7 @@ using namespace Gui::Dialog;
|
||||
/* TRANSLATOR Gui::Dialog::TextureMapping */
|
||||
|
||||
TextureMapping::TextureMapping(QWidget* parent, Qt::WindowFlags fl)
|
||||
: QDialog(parent, fl), grp(0), tex(0), env(0)
|
||||
: QDialog(parent, fl), grp(nullptr), tex(nullptr), env(nullptr)
|
||||
{
|
||||
ui = new Ui_TextureMapping();
|
||||
ui->setupUi(this);
|
||||
@@ -178,7 +178,7 @@ void TextureMapping::on_checkEnv_toggled(bool b)
|
||||
TaskTextureMapping::TaskTextureMapping()
|
||||
{
|
||||
dialog = new TextureMapping();
|
||||
taskbox = new Gui::TaskView::TaskBox(QPixmap(), dialog->windowTitle(), true, 0);
|
||||
taskbox = new Gui::TaskView::TaskBox(QPixmap(), dialog->windowTitle(), true, nullptr);
|
||||
taskbox->groupLayout()->addWidget(dialog);
|
||||
Content.push_back(taskbox);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user