diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-12-21 21:15:03 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-12-23 11:05:54 +0100 |
commit | 9714d02018904b0c207a3f4d7de0be1a6a22774b (patch) | |
tree | 2357be6e7e2399e057aa3c3b8ded7286a96dc6ee /louloulibs/xmpp/xmpp_component.cpp | |
parent | 7e2427148e9023483f266cd3ac4e167d50320796 (diff) | |
download | biboumi-9714d02018904b0c207a3f4d7de0be1a6a22774b.tar.gz biboumi-9714d02018904b0c207a3f4d7de0be1a6a22774b.tar.bz2 biboumi-9714d02018904b0c207a3f4d7de0be1a6a22774b.tar.xz biboumi-9714d02018904b0c207a3f4d7de0be1a6a22774b.zip |
Also store a reference instead of a pointer, in AdhocCommandsHandler
Diffstat (limited to 'louloulibs/xmpp/xmpp_component.cpp')
-rw-r--r-- | louloulibs/xmpp/xmpp_component.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/louloulibs/xmpp/xmpp_component.cpp b/louloulibs/xmpp/xmpp_component.cpp index ce9552f..a82892d 100644 --- a/louloulibs/xmpp/xmpp_component.cpp +++ b/louloulibs/xmpp/xmpp_component.cpp @@ -45,7 +45,7 @@ XmppComponent::XmppComponent(std::shared_ptr<Poller> poller, const std::string& doc_open(false), served_hostname(hostname), stanza_handlers{}, - adhoc_commands_handler(this) + adhoc_commands_handler(*this) { this->parser.add_stream_open_callback(std::bind(&XmppComponent::on_remote_stream_open, this, std::placeholders::_1)); |