diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-09-22 04:01:09 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-09-22 04:01:09 +0200 |
commit | f6d9b7d7a1d670b3b3d2bd1ca831de8578de6206 (patch) | |
tree | 622e149f6b6dc41768f23a3c3dfd8f5c7e74bd6e | |
parent | 2928598e773ca6708efdda1b6c35786cd3fa5587 (diff) | |
download | biboumi-f6d9b7d7a1d670b3b3d2bd1ca831de8578de6206.tar.gz biboumi-f6d9b7d7a1d670b3b3d2bd1ca831de8578de6206.tar.bz2 biboumi-f6d9b7d7a1d670b3b3d2bd1ca831de8578de6206.tar.xz biboumi-f6d9b7d7a1d670b3b3d2bd1ca831de8578de6206.zip |
Fix two small warnings
-rw-r--r-- | src/xmpp/biboumi_adhoc_commands.cpp | 8 | ||||
-rw-r--r-- | src/xmpp/biboumi_component.hpp | 2 |
2 files changed, 3 insertions, 7 deletions
diff --git a/src/xmpp/biboumi_adhoc_commands.cpp b/src/xmpp/biboumi_adhoc_commands.cpp index 55acd3d..b7d2020 100644 --- a/src/xmpp/biboumi_adhoc_commands.cpp +++ b/src/xmpp/biboumi_adhoc_commands.cpp @@ -112,10 +112,8 @@ void DisconnectUserStep2(XmppComponent* xmpp_component, AdhocSession& session, X } #ifdef USE_DATABASE -void ConfigureIrcServerStep1(XmppComponent* xmpp_component, AdhocSession& session, XmlNode& command_node) +void ConfigureIrcServerStep1(XmppComponent*, AdhocSession& session, XmlNode& command_node) { - auto biboumi_component = static_cast<BiboumiComponent*>(xmpp_component); - const Jid owner(session.get_owner_jid()); const Jid target(session.get_target_jid()); auto options = Database::get_irc_server_options(owner.local + "@" + owner.domain, @@ -194,10 +192,8 @@ void ConfigureIrcServerStep1(XmppComponent* xmpp_component, AdhocSession& sessio command_node.add_child(std::move(x)); } -void ConfigureIrcServerStep2(XmppComponent* xmpp_component, AdhocSession& session, XmlNode& command_node) +void ConfigureIrcServerStep2(XmppComponent*, AdhocSession& session, XmlNode& command_node) { - auto biboumi_component = static_cast<BiboumiComponent*>(xmpp_component); - const XmlNode* x = command_node.get_child("x", "jabber:x:data"); if (x) { diff --git a/src/xmpp/biboumi_component.hpp b/src/xmpp/biboumi_component.hpp index fe99f2d..b8fca39 100644 --- a/src/xmpp/biboumi_component.hpp +++ b/src/xmpp/biboumi_component.hpp @@ -9,7 +9,7 @@ #include <string> #include <map> -class ListElement; +struct ListElement; /** * A callback called when the waited iq result is received (it is matched |