lib/dbus/Message: add noexcept

This commit is contained in:
Max Kellermann 2020-07-23 16:17:26 +02:00
parent 155fc8fa5a
commit 7376f31c97
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ ODBus::Message::StealReply(DBusPendingCall &pending)
}
ODBus::Message
ODBus::Message::Pop(DBusConnection &connection)
ODBus::Message::Pop(DBusConnection &connection) noexcept
{
auto *msg = dbus_connection_pop_message(&connection);
return Message(msg);

View File

@ -72,7 +72,7 @@ public:
static Message StealReply(DBusPendingCall &pending);
static Message Pop(DBusConnection &connection);
static Message Pop(DBusConnection &connection) noexcept;
bool IsDefined() const noexcept {
return msg != nullptr;