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/adhoc_commands_handler.hpp | |
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/adhoc_commands_handler.hpp')
-rw-r--r-- | louloulibs/xmpp/adhoc_commands_handler.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/louloulibs/xmpp/adhoc_commands_handler.hpp b/louloulibs/xmpp/adhoc_commands_handler.hpp index cf9ca17..0614b2f 100644 --- a/louloulibs/xmpp/adhoc_commands_handler.hpp +++ b/louloulibs/xmpp/adhoc_commands_handler.hpp @@ -16,7 +16,7 @@ class AdhocCommandsHandler { public: - explicit AdhocCommandsHandler(XmppComponent* xmpp_component): + explicit AdhocCommandsHandler(XmppComponent& xmpp_component): xmpp_component(xmpp_component), commands{} { } @@ -50,10 +50,9 @@ public: void remove_session(const std::string& session_id, const std::string& initiator_jid); private: /** - * A pointer to the XmppComponent, to access to basically anything in the - * gateway. + * To access basically anything in the gateway. */ - XmppComponent* xmpp_component; + XmppComponent& xmpp_component; /** * The list of all available commands. */ |