From 7376f31c9701b9ed35f7147029cbc61af8a66884 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 23 Jul 2020 16:17:26 +0200 Subject: [PATCH] lib/dbus/Message: add `noexcept` --- src/lib/dbus/Message.cxx | 2 +- src/lib/dbus/Message.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/dbus/Message.cxx b/src/lib/dbus/Message.cxx index b391b0c35..f6ea8ae40 100644 --- a/src/lib/dbus/Message.cxx +++ b/src/lib/dbus/Message.cxx @@ -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); diff --git a/src/lib/dbus/Message.hxx b/src/lib/dbus/Message.hxx index 5e7dc7f06..dcf726ef4 100644 --- a/src/lib/dbus/Message.hxx +++ b/src/lib/dbus/Message.hxx @@ -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;