diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-12-22 21:37:29 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-12-23 11:05:55 +0100 |
commit | 9ac0d3a5766494c9c0c2074c4a21542eea195a29 (patch) | |
tree | 3cdc18699373eb5c6e2b68cb6686de997ff8bbe3 /louloulibs/xmpp/xmpp_parser.cpp | |
parent | 9167cdf1269c1956b72db1e8dfdbfd61cbf66bb9 (diff) | |
download | biboumi-9ac0d3a5766494c9c0c2074c4a21542eea195a29.tar.gz biboumi-9ac0d3a5766494c9c0c2074c4a21542eea195a29.tar.bz2 biboumi-9ac0d3a5766494c9c0c2074c4a21542eea195a29.tar.xz biboumi-9ac0d3a5766494c9c0c2074c4a21542eea195a29.zip |
A few cleanups, and make a few things more modern
Diffstat (limited to 'louloulibs/xmpp/xmpp_parser.cpp')
-rw-r--r-- | louloulibs/xmpp/xmpp_parser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/louloulibs/xmpp/xmpp_parser.cpp b/louloulibs/xmpp/xmpp_parser.cpp index 25f2876..69de145 100644 --- a/louloulibs/xmpp/xmpp_parser.cpp +++ b/louloulibs/xmpp/xmpp_parser.cpp @@ -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 |