summaryrefslogtreecommitdiff
path: root/src/xmpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-12-21 20:45:40 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-12-21 14:51:26 +0100
commit7e2427148e9023483f266cd3ac4e167d50320796 (patch)
tree86496ad87a4be9f332756b8077e17a5e18b8171f /src/xmpp
parent8ddbe8d3e6a5a5001537379aa4f1a418c6cb6d23 (diff)
downloadbiboumi-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.cpp2
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();
}
}