From e315d129ba6f239dce1a5f21f8f9695e55be3b49 Mon Sep 17 00:00:00 2001 From: Tobias Hunger <tobias.hunger@digia.com> Date: Fri, 22 Nov 2013 17:02:38 +0100 Subject: [PATCH] Valgrind: Set parent for the actions created by the valgrind plugin Change-Id: I5618c993702abca072352623618658984e88bd45 Reviewed-by: hjk <hjk121@nokiamail.com> --- src/plugins/valgrind/valgrindplugin.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/valgrind/valgrindplugin.cpp b/src/plugins/valgrind/valgrindplugin.cpp index f7392831e35..3cef9593ea4 100644 --- a/src/plugins/valgrind/valgrindplugin.cpp +++ b/src/plugins/valgrind/valgrindplugin.cpp @@ -85,7 +85,7 @@ public: class ValgrindAction : public AnalyzerAction { public: - ValgrindAction() {} + explicit ValgrindAction(QObject *parent = 0) : AnalyzerAction(parent) { } }; @@ -114,7 +114,7 @@ bool ValgrindPlugin::initialize(const QStringList &, QString *) "\"memcheck\" tool to find memory leaks."); if (!Utils::HostOsInfo::isWindowsHost()) { - action = new ValgrindAction; + action = new ValgrindAction(this); action->setId("Memcheck.Local"); action->setTool(m_memcheckTool); action->setText(tr("Valgrind Memory Analyzer")); @@ -124,7 +124,7 @@ bool ValgrindPlugin::initialize(const QStringList &, QString *) action->setEnabled(false); AnalyzerManager::addAction(action); - action = new ValgrindAction; + action = new ValgrindAction(this); action->setId("Callgrind.Local"); action->setTool(m_callgrindTool); action->setText(tr("Valgrind Function Profiler")); @@ -135,7 +135,7 @@ bool ValgrindPlugin::initialize(const QStringList &, QString *) AnalyzerManager::addAction(action); } - action = new ValgrindAction; + action = new ValgrindAction(this); action->setId("Memcheck.Remote"); action->setTool(m_memcheckTool); action->setText(tr("Valgrind Memory Analyzer (Remote)")); @@ -144,7 +144,7 @@ bool ValgrindPlugin::initialize(const QStringList &, QString *) action->setStartMode(StartRemote); AnalyzerManager::addAction(action); - action = new ValgrindAction; + action = new ValgrindAction(this); action->setId("Callgrind.Remote"); action->setTool(m_callgrindTool); action->setText(tr("Valgrind Function Profiler (Remote)")); -- GitLab