Commit c2211703 authored by Sebastian Holtermann's avatar Sebastian Holtermann Committed by Brad King

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

parent 2da0875f
......@@ -7,3 +7,8 @@ LibWidget::LibWidget(QWidget* parent)
{
ui->setupUi(this);
}
LibWidget::~LibWidget()
{
delete ui;
}
......@@ -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
......@@ -7,3 +7,8 @@ MyWidget::MyWidget(QWidget* parent)
{
ui->setupUi(this);
}
MyWidget::~MyWidget()
{
delete ui;
}
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment