summaryrefslogtreecommitdiffstats
path: root/src/uscxml/Message.cpp
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2012-09-16 23:09:21 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2012-09-16 23:09:21 (GMT)
commit959224050cbceb024588bf0b49c57c503c299beb (patch)
tree50dfbf7f2c05e0974349b19c3f78e7681561a495 /src/uscxml/Message.cpp
parent2196f12c9f31b9858fedc477bbe9d5dbd2f87147 (diff)
downloaduscxml-959224050cbceb024588bf0b49c57c503c299beb.zip
uscxml-959224050cbceb024588bf0b49c57c503c299beb.tar.gz
uscxml-959224050cbceb024588bf0b49c57c503c299beb.tar.bz2
fixed json in ecmascript data
Diffstat (limited to 'src/uscxml/Message.cpp')
-rw-r--r--src/uscxml/Message.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uscxml/Message.cpp b/src/uscxml/Message.cpp
index 9b713ca..a2990b9 100644
--- a/src/uscxml/Message.cpp
+++ b/src/uscxml/Message.cpp
@@ -7,7 +7,7 @@ namespace uscxml {
static int _dataIndentation = 1;
-Data::Data(const Arabica::DOM::Node<std::string>& dom) {
+Data::Data(const Arabica::DOM::Node<std::string>& dom, Type type) {
// we may need to convert some keys to arrays if we have the same name as an element
std::map<std::string, std::list<Data> > arrays;
// Interpreter::dump(dom);
@@ -54,7 +54,7 @@ Data::Data(const Arabica::DOM::Node<std::string>& dom) {
}
} else {
atom = dom.getNodeValue();
- type = VERBATIM;
+ this->type = type;
}
std::map<std::string, std::list<Data> >::iterator arrayIter = arrays.begin();