Skip to content
Snippets Groups Projects
Unverified Commit 6926db6a authored by Joe Donofry's avatar Joe Donofry Committed by GitHub
Browse files

Merge pull request #1533 from Nheko-Reborn/compileErrorFixes

Fix some errors given by GCC
parents 41ff0096 8a9e6ccf
No related branches found
No related tags found
No related merge requests found
Pipeline #5035 passed
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment