mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 16:55:36 +08:00
clang-format src
This commit is contained in:
@@ -73,8 +73,7 @@ namespace BlackSimPlugin::XPlane
|
||||
template <typename T>
|
||||
std::function<void(QDBusPendingCallWatcher *)> setterCallback(T *obj)
|
||||
{
|
||||
return [this, obj](QDBusPendingCallWatcher * watcher)
|
||||
{
|
||||
return [this, obj](QDBusPendingCallWatcher *watcher) {
|
||||
QDBusPendingReply<T> reply = *watcher;
|
||||
if (reply.isError()) { emit this->asyncMethodError(reply.error()); }
|
||||
else { *obj = reply; }
|
||||
|
||||
Reference in New Issue
Block a user