From 178d115ccbed718d83ef73d1d73ef77666f17226 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 14 Dec 2020 13:19:29 +0100 Subject: [PATCH] lib/dbus/Glue: add `noexcept` --- src/lib/dbus/Glue.cxx | 4 ++-- src/lib/dbus/Glue.hxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/dbus/Glue.cxx b/src/lib/dbus/Glue.cxx index 62d3a6a16..9ea4cec92 100644 --- a/src/lib/dbus/Glue.cxx +++ b/src/lib/dbus/Glue.cxx @@ -39,7 +39,7 @@ Glue::ConnectIndirect() } void -Glue::DisconnectIndirect() +Glue::DisconnectIndirect() noexcept { BlockingCall(GetEventLoop(), [this](){ Disconnect(); }); } @@ -53,7 +53,7 @@ Glue::Connect() } void -Glue::Disconnect() +Glue::Disconnect() noexcept { GetConnection().Close(); diff --git a/src/lib/dbus/Glue.hxx b/src/lib/dbus/Glue.hxx index 982e17cfd..8fbcaf3c2 100644 --- a/src/lib/dbus/Glue.hxx +++ b/src/lib/dbus/Glue.hxx @@ -62,10 +62,10 @@ public: private: void ConnectIndirect(); - void DisconnectIndirect(); + void DisconnectIndirect() noexcept; void Connect(); - void Disconnect(); + void Disconnect() noexcept; /* virtual methods from class ODBus::WatchManagerObserver */ void OnDBusClosed() noexcept override;