From b5fbfdf1069dc8d83366627b1788a9d20e807517 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Thu, 20 Jul 2023 15:39:18 +0800 Subject: [PATCH] Use correct type https://doc.qt.io/qt-6/qdbustypesystem.html https://dbus.freedesktop.org/doc/dbus-specification.html#id-1.3.8 --- src/gui/powermanagement/powermanagement_x11.cpp | 2 +- src/gui/powermanagement/powermanagement_x11.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/powermanagement/powermanagement_x11.cpp b/src/gui/powermanagement/powermanagement_x11.cpp index 7ddf1064e..585a84232 100644 --- a/src/gui/powermanagement/powermanagement_x11.cpp +++ b/src/gui/powermanagement/powermanagement_x11.cpp @@ -176,7 +176,7 @@ void PowerManagementInhibitor::onAsyncReply(QDBusPendingCallWatcher *call) } else { - const QDBusPendingReply reply = *call; + const QDBusPendingReply reply = *call; if (reply.isError()) { diff --git a/src/gui/powermanagement/powermanagement_x11.h b/src/gui/powermanagement/powermanagement_x11.h index 3810efcb3..4da9ece22 100644 --- a/src/gui/powermanagement/powermanagement_x11.h +++ b/src/gui/powermanagement/powermanagement_x11.h @@ -71,6 +71,6 @@ private: enum State m_state = Error; enum State m_intendedState = Idle; - quint32 m_cookie = 0; + uint m_cookie = 0; QDBusUnixFileDescriptor m_fd; };