Valgrind: Remove unneeded use of global object pool

Change-Id: If1412703d04e63bf08caaabc83f6a4b9999c5e29
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2018-02-02 18:02:28 +01:00
parent 9b3a074438
commit 126674429f

View File

@@ -43,7 +43,6 @@
#include <projectexplorer/projectexplorer.h>
#include <QtPlugin>
#include <QCoreApplication>
#include <QPointer>
@@ -58,7 +57,8 @@ static ValgrindGlobalSettings *theGlobalSettings = 0;
class ValgrindOptionsPage : public IOptionsPage
{
public:
explicit ValgrindOptionsPage()
explicit ValgrindOptionsPage(QObject *parent)
: IOptionsPage(parent)
{
setId(ANALYZER_VALGRIND_SETTINGS);
setDisplayName(QCoreApplication::translate("Valgrind::Internal::ValgrindOptionsPage", "Valgrind"));
@@ -116,7 +116,7 @@ bool ValgrindPlugin::initialize(const QStringList &, QString *)
theGlobalSettings = new ValgrindGlobalSettings;
theGlobalSettings->readSettings();
addAutoReleasedObject(new ValgrindOptionsPage);
new ValgrindOptionsPage(this);
RunConfiguration::registerAspect<ValgrindRunConfigurationAspect>();