summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2023-07-22 15:22:04 -0400
committerLoren Burkholder <computersemiexpert@outlook.com>2023-07-23 09:54:17 -0400
commit8a9e6ccf3e24676ade4b701fb2d4f792d6b47567 (patch)
treef6449b3b81f78d9169ff0fc5d8ffdb1bd7521d45 /src
parentTranslated using Weblate (Chinese (Simplified)) (diff)
downloadnheko-8a9e6ccf3e24676ade4b701fb2d4f792d6b47567.tar.xz
Fix some compiler errors
Diffstat (limited to 'src')
-rw-r--r--src/voip/ScreenCastPortal.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/voip/ScreenCastPortal.cpp b/src/voip/ScreenCastPortal.cpp
index 6cd91e51..83f7595b 100644
--- a/src/voip/ScreenCastPortal.cpp
+++ b/src/voip/ScreenCastPortal.cpp
@@ -420,16 +420,15 @@ ScreenCastPortal::start()
 
     QDBusPendingCall pendingCall     = QDBusConnection::sessionBus().asyncCall(msg);
     QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(pendingCall, this);
-    connect(
-      watcher, &QDBusPendingCallWatcher::finished, this, [this](QDBusPendingCallWatcher *self) {
-          self->deleteLater();
-          QDBusPendingReply<QDBusObjectPath> reply = *self;
+    connect(watcher, &QDBusPendingCallWatcher::finished, this, [](QDBusPendingCallWatcher *self) {
+        self->deleteLater();
+        QDBusPendingReply<QDBusObjectPath> reply = *self;
 
-          if (!reply.isValid()) {
-              nhlog::ui()->error("org.freedesktop.portal.ScreenCast (Start): {}",
-                                 reply.error().message().toStdString());
-          }
-      });
+        if (!reply.isValid()) {
+            nhlog::ui()->error("org.freedesktop.portal.ScreenCast (Start): {}",
+                               reply.error().message().toStdString());
+        }
+    });
 }
 
 struct PipeWireStream
@@ -502,7 +501,7 @@ ScreenCastPortal::openPipeWireRemote()
                                  reply.error().message().toStdString());
               close();
           } else {
-              stream.fd = std::move(reply.value());
+              stream.fd = reply.value();
               nhlog::ui()->error("org.freedesktop.portal.ScreenCast: fd = {}",
                                  stream.fd.fileDescriptor());
               state = State::Started;