QtAutogen: Tests: Don't use std::auto_ptr

This commit is contained in:
Sebastian Holtermann 2016-12-06 16:46:16 +01:00 committed by Brad King
parent 2da0875f3a
commit c2211703d3
4 changed files with 14 additions and 2 deletions

View File

@ -7,3 +7,8 @@ LibWidget::LibWidget(QWidget* parent)
{
ui->setupUi(this);
}
LibWidget::~LibWidget()
{
delete ui;
}

View File

@ -16,9 +16,10 @@ class LibWidget : public QWidget
Q_OBJECT
public:
explicit LibWidget(QWidget* parent = 0);
~LibWidget();
private:
const std::auto_ptr<Ui::LibWidget> ui;
Ui::LibWidget* ui;
};
#endif

View File

@ -7,3 +7,8 @@ MyWidget::MyWidget(QWidget* parent)
{
ui->setupUi(this);
}
MyWidget::~MyWidget()
{
delete ui;
}

View File

@ -16,9 +16,10 @@ class MyWidget : public QWidget
Q_OBJECT
public:
explicit MyWidget(QWidget* parent = 0);
~MyWidget();
private:
const std::auto_ptr<Ui::MyWidget> ui;
Ui::MyWidget* ui;
};
#endif