summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-10-26 20:09:39 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-10-26 20:09:39 +0100
commit142516a69bb000ce80cbb6509d1f407438a94663 (patch)
treea2acfe00953a86a036f0bc81f221bbe8e557977f /src
parent0fcba76c793e7c0b1ccc09eaa85016caa11ca3f2 (diff)
downloadbiboumi-142516a69bb000ce80cbb6509d1f407438a94663.tar.gz
biboumi-142516a69bb000ce80cbb6509d1f407438a94663.tar.bz2
biboumi-142516a69bb000ce80cbb6509d1f407438a94663.tar.xz
biboumi-142516a69bb000ce80cbb6509d1f407438a94663.zip
Fix some trivial issues reported by cppcheck
Diffstat (limited to 'src')
-rw-r--r--src/irc/irc_client.cpp1
-rw-r--r--src/xmpp/biboumi_component.cpp2
-rw-r--r--src/xmpp/biboumi_component.hpp2
3 files changed, 2 insertions, 3 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 0289d72..8f92f9b 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -888,7 +888,6 @@ void IrcClient::on_unknown_message(const IrcMessage& message)
if (message.arguments.size() < 2)
return ;
std::string from = message.prefix;
- const std::string to = message.arguments[0];
std::stringstream ss;
for (auto it = message.arguments.begin() + 1; it != message.arguments.end(); ++it)
{
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp
index 920a2a3..10dce57 100644
--- a/src/xmpp/biboumi_component.cpp
+++ b/src/xmpp/biboumi_component.cpp
@@ -579,7 +579,7 @@ void BiboumiComponent::send_ping_request(const std::string& from,
}
void BiboumiComponent::send_iq_room_list_result(const std::string& id,
- const std::string to_jid,
+ const std::string& to_jid,
const std::string& from,
const std::vector<ListElement>& rooms_list)
{
diff --git a/src/xmpp/biboumi_component.hpp b/src/xmpp/biboumi_component.hpp
index b8fca39..69eebdc 100644
--- a/src/xmpp/biboumi_component.hpp
+++ b/src/xmpp/biboumi_component.hpp
@@ -66,7 +66,7 @@ public:
/**
* Send the channels list in one big stanza
*/
- void send_iq_room_list_result(const std::string& id, const std::string to_jid,
+ void send_iq_room_list_result(const std::string& id, const std::string& to_jid,
const std::string& from,
const std::vector<ListElement>& rooms_list);
/**