mirror of
https://github.com/reactos/CMake.git
synced 2024-12-15 07:41:15 +00:00
QtAutogen: Tests: Don't use std::auto_ptr
This commit is contained in:
parent
2da0875f3a
commit
c2211703d3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user