summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/WhatsAPI++/ProtocolTreeNode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++/ProtocolTreeNode.cpp')
-rw-r--r--protocols/WhatsApp/src/WhatsAPI++/ProtocolTreeNode.cpp6
1 files changed, 3 insertions, 3 deletions
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<string, string>::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*> ProtocolTreeNode::getAllChildren()
return *this->children;
}
-std::string ProtocolTreeNode::getDataAsString()
+std::string ProtocolTreeNode::getDataAsString() const
{
if (this->data == NULL)
return nilstr;