summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-01-07 12:56:46 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-01-07 12:56:46 (GMT)
commit9629ef3f969e31dfd19efa27e62487fc46610416 (patch)
tree5e8e260de55b4e65dd49f2d81d2fc61b46844224 /src
parent0388c7ac478187ff8d264b6e0275a4c4a43796b9 (diff)
downloaduscxml-9629ef3f969e31dfd19efa27e62487fc46610416.zip
uscxml-9629ef3f969e31dfd19efa27e62487fc46610416.tar.gz
uscxml-9629ef3f969e31dfd19efa27e62487fc46610416.tar.bz2
Fixes for the Prolog datamodel
Diffstat (limited to 'src')
-rw-r--r--src/uscxml/Message.cpp2
-rw-r--r--src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/uscxml/Message.cpp b/src/uscxml/Message.cpp
index 26cf640..4591484 100644
--- a/src/uscxml/Message.cpp
+++ b/src/uscxml/Message.cpp
@@ -62,7 +62,7 @@ Blob::Blob(void* _data, size_t _size, const std::string& _mimeType, bool adopt)
}
#if 0
-// there used to work base64 encoded images in a browser - can't check extensively just now
+// this used to work base64 encoded images in a browser - can't check extensively just now
static const std::string base64_chars =
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz"
diff --git a/src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.cpp b/src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.cpp
index 9a0a831..4786903 100644
--- a/src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.cpp
+++ b/src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.cpp
@@ -471,9 +471,9 @@ void SWIDataModel::assign(const Element<std::string>& assignElem,
std::stringstream dataInitStr;
std::stringstream xmlDoc;
Node<std::string> child = node;
- while(node) {
+ while(child) {
xmlDoc << child;
- child = node.getNextSibling();
+ child = child.getNextSibling();
}
domUrl = URL::toLocalFile(xmlDoc.str(), ".pl");
if (iequals(type, "retract"))