mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
QtAutogen: Tests: Don't use std::auto_ptr
This commit is contained in:
1 parent
6731025211
commit
6d0a8af368
2 files changed
+7
-2
No files matched your search
@@ -7,6 +7,11 @@ UicOnly::UicOnly(QWidget* parent)
|
||||
{
|
||||
}
|
||||
|
||||
UicOnly::~UicOnly()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
return 0;
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user