summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2016-12-02 11:51:15 (GMT)
committerBrad King <brad.king@kitware.com>2016-12-07 13:24:05 (GMT)
commit6d0a8af3687c66f95d7f787402f7aa82c8fae73a (patch)
tree4b4293c4b8501738985b483eafe8f2c51e83feba /Tests/QtAutogen
parent6731025211bb300f762ac4d4984de124dc38c95a (diff)
downloadCMake-6d0a8af3687c66f95d7f787402f7aa82c8fae73a.zip
CMake-6d0a8af3687c66f95d7f787402f7aa82c8fae73a.tar.gz
CMake-6d0a8af3687c66f95d7f787402f7aa82c8fae73a.tar.bz2
QtAutogen: Tests: Don't use std::auto_ptr
Diffstat (limited to 'Tests/QtAutogen')
-rw-r--r--Tests/QtAutogen/uicOnlySource/uiconly.cpp5
-rw-r--r--Tests/QtAutogen/uicOnlySource/uiconly.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/Tests/QtAutogen/uicOnlySource/uiconly.cpp b/Tests/QtAutogen/uicOnlySource/uiconly.cpp
index ac22789..7b91b25 100644
--- a/Tests/QtAutogen/uicOnlySource/uiconly.cpp
+++ b/Tests/QtAutogen/uicOnlySource/uiconly.cpp
@@ -7,6 +7,11 @@ UicOnly::UicOnly(QWidget* parent)
{
}
+UicOnly::~UicOnly()
+{
+ delete ui;
+}
+
int main()
{
return 0;
diff --git a/Tests/QtAutogen/uicOnlySource/uiconly.h b/Tests/QtAutogen/uicOnlySource/uiconly.h
index 9b0b1b4..8f4eebe 100644
--- a/Tests/QtAutogen/uicOnlySource/uiconly.h
+++ b/Tests/QtAutogen/uicOnlySource/uiconly.h
@@ -3,7 +3,6 @@
#define UIC_ONLY_H
#include <QWidget>
-#include <memory>
#include "ui_uiconly.h"
@@ -12,9 +11,10 @@ class UicOnly : public QWidget
Q_OBJECT
public:
explicit UicOnly(QWidget* parent = 0);
+ ~UicOnly();
private:
- const std::auto_ptr<Ui::UicOnly> ui;
+ Ui::UicOnly* ui;
};
#endif