forked from qt-creator/qt-creator
QScopeGuard: Make all usages of QScopeGuard consistent
Change-Id: Icfc35ecbdbdee8dadbb1b17789694093427c3ed9 Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -341,7 +341,7 @@ bool AndroidRunnerWorker::uploadDebugServer(const QString &debugServerFileName)
|
||||
}
|
||||
|
||||
const QString tempDebugServerPath = tempDebugServerPathTemplate.arg(count);
|
||||
auto cleanUp = qScopeGuard([this, tempDebugServerPath] {
|
||||
const QScopeGuard cleanup([this, tempDebugServerPath] {
|
||||
if (!runAdb({"shell", "rm", "-f", tempDebugServerPath}))
|
||||
qCDebug(androidRunWorkerLog) << "Debug server cleanup failed.";
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user