From 6d0a8af3687c66f95d7f787402f7aa82c8fae73a Mon Sep 17 00:00:00 2001 From: Sebastian Holtermann Date: Fri, 2 Dec 2016 12:51:15 +0100 Subject: QtAutogen: Tests: Don't use std::auto_ptr --- Tests/QtAutogen/uicOnlySource/uiconly.cpp | 5 +++++ Tests/QtAutogen/uicOnlySource/uiconly.h | 4 ++-- 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 -#include #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; + Ui::UicOnly* ui; }; #endif -- cgit v0.12