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/xmpp | |
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/xmpp')
-rw-r--r-- | src/xmpp/biboumi_component.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp index 72b767f..9682dcb 100644 --- a/src/xmpp/biboumi_component.cpp +++ b/src/xmpp/biboumi_component.cpp @@ -488,7 +488,7 @@ Bridge* BiboumiComponent::get_user_bridge(const std::string& user_jid) } catch (const std::out_of_range& exception) { - this->bridges.emplace(user_jid, std::make_unique<Bridge>(user_jid, this, this->poller)); + this->bridges.emplace(user_jid, std::make_unique<Bridge>(user_jid, *this, this->poller)); return this->bridges.at(user_jid).get(); } } |