Merge pull request #1533 from Nheko-Reborn/compileErrorFixes

Fix some errors given by GCC
This commit is contained in:
Joseph Donofry 2023-07-23 21:28:24 +00:00 committed by GitHub
commit 6926db6af4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -420,8 +420,7 @@ ScreenCastPortal::start()
QDBusPendingCall pendingCall = QDBusConnection::sessionBus().asyncCall(msg);
QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(pendingCall, this);
connect(
watcher, &QDBusPendingCallWatcher::finished, this, [this](QDBusPendingCallWatcher *self) {
connect(watcher, &QDBusPendingCallWatcher::finished, this, [](QDBusPendingCallWatcher *self) {
self->deleteLater();
QDBusPendingReply<QDBusObjectPath> reply = *self;
@ -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;