summaryrefslogtreecommitdiff
path: root/plugins/qmlprofiler/qmlprofilerplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/qmlprofiler/qmlprofilerplugin.cpp')
-rw-r--r--plugins/qmlprofiler/qmlprofilerplugin.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/qmlprofiler/qmlprofilerplugin.cpp b/plugins/qmlprofiler/qmlprofilerplugin.cpp
index 9cd725b39c..9cb1ee5ba6 100644
--- a/plugins/qmlprofiler/qmlprofilerplugin.cpp
+++ b/plugins/qmlprofiler/qmlprofilerplugin.cpp
@@ -38,8 +38,6 @@
#include <QtPlugin>
-
-
using namespace Analyzer;
using namespace QmlProfiler;
using namespace QmlProfiler::Internal;
@@ -52,10 +50,9 @@ bool QmlProfilerPlugin::initialize(const QStringList &arguments, QString *errorS
Q_UNUSED(arguments)
Q_UNUSED(errorString)
- StartModes modes;
- modes.append(StartMode(StartLocal));
- modes.append(StartMode(StartRemote));
- AnalyzerManager::addTool(new QmlProfilerTool(this), modes);
+ IAnalyzerTool *tool = new QmlProfilerTool(this);
+ AnalyzerManager::addTool(tool, StartLocal);
+ AnalyzerManager::addTool(tool, StartRemote);
addAutoReleasedObject(new QmlProfilerRunControlFactory());
QmlProfilerPlugin::instance = this;