diff options
author | Bernhard Beschow <shentey@gmail.com> | 2021-01-26 16:41:28 +0100 |
---|---|---|
committer | Bernhard Beschow <shentey@gmail.com> | 2021-06-25 16:42:43 +0000 |
commit | 35021ec2da364e6ea2f4b5627a625b2aa4404cef (patch) | |
tree | d2276d52505da632a25123d66d05ef2c755f5605 /src/plugins/autotest | |
parent | a842409d2cb30798e837ae52f5da816122eb32f1 (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.cpp | 4 |
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; } |