summaryrefslogtreecommitdiff
path: root/louloulibs/xmpp/xmpp_parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'louloulibs/xmpp/xmpp_parser.cpp')
-rw-r--r--louloulibs/xmpp/xmpp_parser.cpp6
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