A few cleanups, and make a few things more modern

This commit is contained in:
Florent Le Coz
2015-12-23 11:05:55 +01:00
parent 9167cdf126
commit 9ac0d3a576
5 changed files with 23 additions and 22 deletions
+3 -3
View File
@@ -124,12 +124,12 @@ void XmppParser::end_element(const XML_Char*)
}
}
void XmppParser::char_data(const XML_Char* data, int len)
void XmppParser::char_data(const XML_Char* data, const size_t len)
{
if (this->current_node->has_children())
this->current_node->get_last_child()->add_to_tail(std::string(data, len));
this->current_node->get_last_child()->add_to_tail({data, len});
else
this->current_node->add_to_inner(std::string(data, len));
this->current_node->add_to_inner({data, len});
}
void XmppParser::stanza_event(const Stanza& stanza) const