diff --git a/src/plugins/android/androidqmltoolingsupport.cpp b/src/plugins/android/androidqmltoolingsupport.cpp index 0687201b672..5a2ef0ee718 100644 --- a/src/plugins/android/androidqmltoolingsupport.cpp +++ b/src/plugins/android/androidqmltoolingsupport.cpp @@ -40,11 +40,11 @@ AndroidQmlToolingSupport::AndroidQmlToolingSupport(RunControl *runControl, auto runner = new AndroidRunner(runControl, intentName); addStartDependency(runner); - auto profiler = runControl->createWorker(QmlDebug::runnerIdForRunMode(runControl->runMode())); - profiler->addStartDependency(this); + auto worker = runControl->createWorker(QmlDebug::runnerIdForRunMode(runControl->runMode())); + worker->addStartDependency(this); - connect(runner, &AndroidRunner::qmlServerReady, this, [this, profiler](const QUrl &server) { - profiler->recordData("QmlServerUrl", server); + connect(runner, &AndroidRunner::qmlServerReady, this, [this, worker](const QUrl &server) { + worker->recordData("QmlServerUrl", server); reportStarted(); }); }