Fix build with gcc 9

This commit is contained in:
Ilya Fedin 2020-03-14 23:35:51 +04:00 committed by John Preston
parent fec6a8dd96
commit 99a8c93ac1
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ bool Inhibited() {
const QDBusReply<QVariant> reply = QDBusConnection::sessionBus().call( const QDBusReply<QVariant> reply = QDBusConnection::sessionBus().call(
message); message);
constexpr auto notSupportedErrors = { const auto notSupportedErrors = {
QDBusError::ServiceUnknown, QDBusError::ServiceUnknown,
QDBusError::InvalidArgs, QDBusError::InvalidArgs,
}; };

View File

@ -374,7 +374,7 @@ std::optional<crl::time> LastUserInputTime() {
const QDBusReply<uint> reply = QDBusConnection::sessionBus().call( const QDBusReply<uint> reply = QDBusConnection::sessionBus().call(
message); message);
constexpr auto notSupportedErrors = { const auto notSupportedErrors = {
QDBusError::ServiceUnknown, QDBusError::ServiceUnknown,
QDBusError::NotSupported, QDBusError::NotSupported,
}; };