aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/autotestplugin.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2020-03-05 08:35:01 +0100
committerChristian Stenger <christian.stenger@qt.io>2020-03-09 11:59:12 +0000
commit9471bd581ea700959dab152c2f6e0b32307cde74 (patch)
tree8eaf5509f445e1dfe3c6a419512bb64eacfd7a49 /src/plugins/autotest/autotestplugin.cpp
parent0e4c09bd1795c35f093aff2ffdb88da36d8da486 (diff)
AutoTest: Remove back reference
There is no need for holding the q-pointer anymore. Change-Id: I9de19238b0cf0d59cd1e88590b7b2dfaf28ff285 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/autotest/autotestplugin.cpp')
-rw-r--r--src/plugins/autotest/autotestplugin.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/autotest/autotestplugin.cpp b/src/plugins/autotest/autotestplugin.cpp
index 1f7a740c5d1..5b8c796ac3c 100644
--- a/src/plugins/autotest/autotestplugin.cpp
+++ b/src/plugins/autotest/autotestplugin.cpp
@@ -86,11 +86,9 @@ class AutotestPluginPrivate : public QObject
{
Q_OBJECT
public:
- explicit AutotestPluginPrivate(AutotestPlugin *parent);
+ AutotestPluginPrivate();
~AutotestPluginPrivate() override;
- AutotestPlugin *q = nullptr;
-
TestFrameworkManager *m_frameworkManager = nullptr;
TestNavigationWidgetFactory *m_navigationWidgetFactory = nullptr;
TestResultsPane *m_resultsPane = nullptr;
@@ -122,8 +120,7 @@ AutotestPlugin::~AutotestPlugin()
delete dd;
}
-AutotestPluginPrivate::AutotestPluginPrivate(AutotestPlugin *parent)
- : q(parent)
+AutotestPluginPrivate::AutotestPluginPrivate()
{
dd = this; // Needed as the code below access it via the static plugin interface
m_frameworkManager = TestFrameworkManager::instance();
@@ -258,7 +255,7 @@ bool AutotestPlugin::initialize(const QStringList &arguments, QString *errorStri
Q_UNUSED(arguments)
Q_UNUSED(errorString)
- dd = new AutotestPluginPrivate(this);
+ dd = new AutotestPluginPrivate;
return true;
}