From 0072a0880c077fc0a21fd57214e6c5bf8497402a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 26 Jan 2015 00:17:21 +0000 Subject: first version that logs in git-svn-id: http://svn.miranda-ng.org/main/trunk@11913 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/WhatsAPI++/ProtocolTreeNode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/WhatsApp/src/WhatsAPI++/ProtocolTreeNode.cpp') diff --git a/protocols/WhatsApp/src/WhatsAPI++/ProtocolTreeNode.cpp b/protocols/WhatsApp/src/WhatsAPI++/ProtocolTreeNode.cpp index 5929d43b20..cb3bc19258 100644 --- a/protocols/WhatsApp/src/WhatsAPI++/ProtocolTreeNode.cpp +++ b/protocols/WhatsApp/src/WhatsAPI++/ProtocolTreeNode.cpp @@ -44,14 +44,14 @@ ProtocolTreeNode::~ProtocolTreeNode() } -string ProtocolTreeNode::toString() +string ProtocolTreeNode::toString() const { string out; out += "<" + this->tag; if (this->attributes != NULL) { map::iterator ii; for (ii = attributes->begin(); ii != attributes->end(); ii++) - out += "" + ii->first + "=\"" + ii->second + "\""; + out += " " + ii->first + "=\"" + ii->second + "\""; } out += ">\n"; out += getDataAsString(); @@ -110,7 +110,7 @@ vector ProtocolTreeNode::getAllChildren() return *this->children; } -std::string ProtocolTreeNode::getDataAsString() +std::string ProtocolTreeNode::getDataAsString() const { if (this->data == NULL) return nilstr; -- cgit v1.2.3