aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/kitmanagerconfigwidget.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2018-07-16 15:32:23 +0200
committerTobias Hunger <tobias.hunger@qt.io>2018-07-25 10:30:27 +0000
commitf685e2bfb49950a56868c0112d8037a9ed815312 (patch)
tree1e72114da6ebe7f6e8168d0f4f0309345bbb3ad3 /src/plugins/projectexplorer/kitmanagerconfigwidget.h
parentdf2b2f1a17afbcd8366e9bc933fabc17f99a7230 (diff)
KitManager: Use unique_ptr to manage kits
Change-Id: I8c66290f0d23afe37673bd858f7db135c8232a78 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/kitmanagerconfigwidget.h')
-rw-r--r--src/plugins/projectexplorer/kitmanagerconfigwidget.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/kitmanagerconfigwidget.h b/src/plugins/projectexplorer/kitmanagerconfigwidget.h
index 81745e4f9f..026a8e25b4 100644
--- a/src/plugins/projectexplorer/kitmanagerconfigwidget.h
+++ b/src/plugins/projectexplorer/kitmanagerconfigwidget.h
@@ -29,6 +29,8 @@
#include <QWidget>
+#include <memory>
+
QT_BEGIN_NAMESPACE
class QGridLayout;
class QLabel;
@@ -98,7 +100,7 @@ private:
QList<KitConfigWidget *> m_widgets;
QList<QLabel *> m_labels;
Kit *m_kit;
- Kit *m_modifiedKit;
+ std::unique_ptr<Kit> m_modifiedKit;
bool m_isDefaultKit = false;
bool m_fixingKit = false;
bool m_hasUniqueName = true;