Fix some trivial issues reported by cppcheck

This commit is contained in:
Florent Le Coz
2015-10-26 20:09:39 +01:00
parent 0fcba76c79
commit 142516a69b
4 changed files with 3 additions and 4 deletions
-1
View File
@@ -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)
{
+1 -1
View File
@@ -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)
{
+1 -1
View File
@@ -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);
/**