forked from qt-creator/qt-creator
Drop unused variables and lambda captures
Also, add context to connect() expressions where we are or were capturing "this". Change-Id: I6e006ba6f83d532478018550d148ee93eca59605 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -554,12 +554,12 @@ void QmlProfilerModelManager::save(const QString &filename)
|
||||
emit error(message);
|
||||
}, Qt::QueuedConnection);
|
||||
|
||||
connect(writer, &QmlProfilerFileWriter::success, this, [this, file]() {
|
||||
connect(writer, &QmlProfilerFileWriter::success, this, [file]() {
|
||||
file->close();
|
||||
delete file;
|
||||
}, Qt::QueuedConnection);
|
||||
|
||||
connect(writer, &QmlProfilerFileWriter::canceled, this, [this, file]() {
|
||||
connect(writer, &QmlProfilerFileWriter::canceled, this, [file]() {
|
||||
file->close();
|
||||
file->remove();
|
||||
delete file;
|
||||
|
||||
@@ -104,7 +104,7 @@ void QmlProfilerPlugin::extensionsInitialized()
|
||||
};
|
||||
|
||||
RunControl::registerWorkerCreator(ProjectExplorer::Constants::QML_PROFILER_RUN_MODE,
|
||||
[this](RunControl *runControl) { return new QmlProfilerRunner(runControl); });
|
||||
[](RunControl *runControl) { return new QmlProfilerRunner(runControl); });
|
||||
|
||||
RunControl::registerWorker<LocalQmlProfilerSupport>
|
||||
(ProjectExplorer::Constants::QML_PROFILER_RUN_MODE, constraint);
|
||||
|
||||
Reference in New Issue
Block a user