summaryrefslogtreecommitdiff
path: root/src/bridge
diff options
context:
space:
mode:
Diffstat (limited to 'src/bridge')
-rw-r--r--src/bridge/bridge.cpp4
-rw-r--r--src/bridge/bridge.hpp12
2 files changed, 6 insertions, 10 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp
index 2815da9..6008dfc 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -45,10 +45,6 @@ Bridge::Bridge(const std::string& user_jid, BiboumiComponent& xmpp, std::shared_
{
}
-Bridge::~Bridge()
-{
-}
-
/**
* Return the role and affiliation, corresponding to the given irc mode */
static std::tuple<std::string, std::string> get_role_affiliation_from_irc_mode(const char mode)
diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp
index 6222ef0..2676d1d 100644
--- a/src/bridge/bridge.hpp
+++ b/src/bridge/bridge.hpp
@@ -34,7 +34,12 @@ class Bridge
{
public:
explicit Bridge(const std::string& user_jid, BiboumiComponent& xmpp, std::shared_ptr<Poller> poller);
- ~Bridge();
+ ~Bridge() = default;
+
+ Bridge(const Bridge&) = delete;
+ Bridge(Bridge&& other) = delete;
+ Bridge& operator=(const Bridge&) = delete;
+ Bridge& operator=(Bridge&&) = delete;
/**
* QUIT all connected IRC servers.
*/
@@ -239,11 +244,6 @@ private:
* response iq.
*/
std::list<irc_responder_callback_t> waiting_irc;
-
- Bridge(const Bridge&) = delete;
- Bridge(Bridge&& other) = delete;
- Bridge& operator=(const Bridge&) = delete;
- Bridge& operator=(Bridge&&) = delete;
};
struct IRCNotConnected: public std::exception