mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-24 09:54:16 +08:00
refactor: clang format line length
This commit is contained in:
@@ -42,10 +42,11 @@ namespace swift::misc
|
||||
{
|
||||
QSharedPointer<QFutureWatcher<T>> watcher(new QFutureWatcher<T>, &QObject::deleteLater);
|
||||
if (!context) { context = watcher.data(); }
|
||||
QObject::connect(watcher.data(), &QFutureWatcher<T>::finished, context, [watcher, func = std::forward<F>(func)]() mutable {
|
||||
if (!watcher->isCanceled()) { func(watcher->future()); }
|
||||
watcher.reset();
|
||||
});
|
||||
QObject::connect(watcher.data(), &QFutureWatcher<T>::finished, context,
|
||||
[watcher, func = std::forward<F>(func)]() mutable {
|
||||
if (!watcher->isCanceled()) { func(watcher->future()); }
|
||||
watcher.reset();
|
||||
});
|
||||
watcher->setFuture(future);
|
||||
QCoreApplication::sendPostedEvents(watcher.data());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user