diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-12-21 20:45:40 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-12-21 14:51:26 +0100 |
commit | 7e2427148e9023483f266cd3ac4e167d50320796 (patch) | |
tree | 86496ad87a4be9f332756b8077e17a5e18b8171f /src/irc/irc_client.hpp | |
parent | 8ddbe8d3e6a5a5001537379aa4f1a418c6cb6d23 (diff) | |
download | biboumi-7e2427148e9023483f266cd3ac4e167d50320796.tar.gz biboumi-7e2427148e9023483f266cd3ac4e167d50320796.tar.bz2 biboumi-7e2427148e9023483f266cd3ac4e167d50320796.tar.xz biboumi-7e2427148e9023483f266cd3ac4e167d50320796.zip |
Use references instead of raw pointer, to store the “parent” object
In Bridge and IrcClient
Diffstat (limited to 'src/irc/irc_client.hpp')
-rw-r--r-- | src/irc/irc_client.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/irc/irc_client.hpp b/src/irc/irc_client.hpp index 733fc92..7c2a43f 100644 --- a/src/irc/irc_client.hpp +++ b/src/irc/irc_client.hpp @@ -29,7 +29,7 @@ public: explicit IrcClient(std::shared_ptr<Poller> poller, const std::string& hostname, const std::string& nickname, const std::string& username, const std::string& realname, const std::string& user_hostname, - Bridge* bridge); + Bridge& bridge); ~IrcClient(); /** * Connect to the IRC server @@ -281,9 +281,9 @@ private: */ std::string current_nick; /** - * Raw pointer because the bridge owns us. + * To communicate back with the bridge */ - Bridge* bridge; + Bridge& bridge; /** * The list of joined channels, indexed by name */ |