summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2016-12-06 15:46:16 (GMT)
committerBrad King <brad.king@kitware.com>2016-12-07 13:24:06 (GMT)
commitc2211703d35de8fc24e818680c033503b96167ff (patch)
treea6b903d501c3c8bb074566497cb90800960e318f /Tests
parent2da0875f3a8cc91a8355298cc8da0a34f98acf09 (diff)
downloadCMake-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.cpp5
-rw-r--r--Tests/QtAutoUicInterface/libwidget.h3
-rw-r--r--Tests/QtAutoUicInterface/mywidget.cpp5
-rw-r--r--Tests/QtAutoUicInterface/mywidget.h3
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