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:
@@ -66,7 +66,7 @@ public:
|
||||
return std::invoke(std::forward<Function>(function), std::forward<Args>(args)...);
|
||||
QElapsedTimer timer;
|
||||
timer.start();
|
||||
auto cleanup = qScopeGuard([this, &timer] {
|
||||
const QScopeGuard cleanup([this, &timer] {
|
||||
const qint64 currentNsecs = timer.nsecsElapsed();
|
||||
const bool mainThread = isMainThread();
|
||||
const int hitThisAll = m_hitThisAll.fetch_add(1) + 1;
|
||||
|
||||
Reference in New Issue
Block a user