Work on lambdas C++20 compatibility

Change-Id: I0d391c02ae1e1c5a1751b33ca7e83902e1cfe269
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Serg Kryvonos
2023-12-07 12:48:05 +01:00
parent b442ca3873
commit c3a7279f05
14 changed files with 28 additions and 26 deletions

View File

@@ -2122,7 +2122,7 @@ void ProcessPrivate::setupDebugLog()
return duration_cast<milliseconds>(system_clock::now().time_since_epoch()).count();
};
connect(q, &Process::starting, this, [=] {
connect(q, &Process::starting, this, [this, now] {
const quint64 msNow = now();
setProperty(QTC_PROCESS_STARTTIME, msNow);
@@ -2135,7 +2135,7 @@ void ProcessPrivate::setupDebugLog()
setProperty(QTC_PROCESS_NUMBER, currentNumber);
});
connect(q, &Process::done, this, [=] {
connect(q, &Process::done, this, [this, now] {
if (!m_process.get())
return;
const QVariant n = property(QTC_PROCESS_NUMBER);