diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2016-12-06 15:46:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-12-07 13:24:06 (GMT) |
commit | c2211703d35de8fc24e818680c033503b96167ff (patch) | |
tree | a6b903d501c3c8bb074566497cb90800960e318f /Tests | |
parent | 2da0875f3a8cc91a8355298cc8da0a34f98acf09 (diff) | |
download | CMake-c2211703d35de8fc24e818680c033503b96167ff.zip CMake-c2211703d35de8fc24e818680c033503b96167ff.tar.gz CMake-c2211703d35de8fc24e818680c033503b96167ff.tar.bz2 |
QtAutogen: Tests: Don't use std::auto_ptr
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/QtAutoUicInterface/libwidget.cpp | 5 | ||||
-rw-r--r-- | Tests/QtAutoUicInterface/libwidget.h | 3 | ||||
-rw-r--r-- | Tests/QtAutoUicInterface/mywidget.cpp | 5 | ||||
-rw-r--r-- | Tests/QtAutoUicInterface/mywidget.h | 3 |
4 files changed, 14 insertions, 2 deletions
diff --git a/Tests/QtAutoUicInterface/libwidget.cpp b/Tests/QtAutoUicInterface/libwidget.cpp index b25f3d7..008c22a 100644 --- a/Tests/QtAutoUicInterface/libwidget.cpp +++ b/Tests/QtAutoUicInterface/libwidget.cpp @@ -7,3 +7,8 @@ LibWidget::LibWidget(QWidget* parent) { ui->setupUi(this); } + +LibWidget::~LibWidget() +{ + delete ui; +} diff --git a/Tests/QtAutoUicInterface/libwidget.h b/Tests/QtAutoUicInterface/libwidget.h index a4400d2..b6f3e82 100644 --- a/Tests/QtAutoUicInterface/libwidget.h +++ b/Tests/QtAutoUicInterface/libwidget.h @@ -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 diff --git a/Tests/QtAutoUicInterface/mywidget.cpp b/Tests/QtAutoUicInterface/mywidget.cpp index 885165b..7cf1a13 100644 --- a/Tests/QtAutoUicInterface/mywidget.cpp +++ b/Tests/QtAutoUicInterface/mywidget.cpp @@ -7,3 +7,8 @@ MyWidget::MyWidget(QWidget* parent) { ui->setupUi(this); } + +MyWidget::~MyWidget() +{ + delete ui; +} diff --git a/Tests/QtAutoUicInterface/mywidget.h b/Tests/QtAutoUicInterface/mywidget.h index fc49e80..c23e55d 100644 --- a/Tests/QtAutoUicInterface/mywidget.h +++ b/Tests/QtAutoUicInterface/mywidget.h @@ -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 |