aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest
diff options
context:
space:
mode:
authorBernhard Beschow <shentey@gmail.com>2021-01-26 16:41:28 +0100
committerBernhard Beschow <shentey@gmail.com>2021-06-25 16:42:43 +0000
commit35021ec2da364e6ea2f4b5627a625b2aa4404cef (patch)
treed2276d52505da632a25123d66d05ef2c755f5605 /src/plugins/autotest
parenta842409d2cb30798e837ae52f5da816122eb32f1 (diff)
AutoTest: Turn pointer into value
... which avoids a raw pointer which needs additional "management". Change-Id: I9c478b4043a563b00ced09de8366657eaf34c349 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/autotest')
-rw-r--r--src/plugins/autotest/autotestplugin.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/autotest/autotestplugin.cpp b/src/plugins/autotest/autotestplugin.cpp
index 20c5562b2a..6f26981bef 100644
--- a/src/plugins/autotest/autotestplugin.cpp
+++ b/src/plugins/autotest/autotestplugin.cpp
@@ -94,7 +94,7 @@ public:
AutotestPluginPrivate();
~AutotestPluginPrivate() override;
- TestNavigationWidgetFactory *m_navigationWidgetFactory = nullptr;
+ TestNavigationWidgetFactory m_navigationWidgetFactory;
TestResultsPane *m_resultsPane = nullptr;
QMap<QString, ChoicePair> m_runconfigCache;
@@ -149,7 +149,6 @@ AutotestPluginPrivate::AutotestPluginPrivate()
m_frameworkManager.registerTestTool(new CTestTool);
m_frameworkManager.synchronizeSettings(ICore::settings());
- m_navigationWidgetFactory = new TestNavigationWidgetFactory;
m_resultsPane = TestResultsPane::instance();
auto panelFactory = new ProjectExplorer::ProjectPanelFactory();
@@ -186,7 +185,6 @@ AutotestPluginPrivate::~AutotestPluginPrivate()
s_projectSettings.clear();
}
- delete m_navigationWidgetFactory;
delete m_resultsPane;
}