summaryrefslogtreecommitdiffstats
path: root/src/uscxml/messages
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-08-03 12:10:57 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-08-03 12:10:57 (GMT)
commit6e1a4a67d5b17e92135cd3f5daf51bf044d76e40 (patch)
tree63d8de9a5ba99dbcd16c6bd867241a7e7466c559 /src/uscxml/messages
parent37f8735a66aadd0e3f019f5edbb9356cf4a7b974 (diff)
downloaduscxml-6e1a4a67d5b17e92135cd3f5daf51bf044d76e40.zip
uscxml-6e1a4a67d5b17e92135cd3f5daf51bf044d76e40.tar.gz
uscxml-6e1a4a67d5b17e92135cd3f5daf51bf044d76e40.tar.bz2
Got rid of more dynamic_casts
Diffstat (limited to 'src/uscxml/messages')
-rw-r--r--src/uscxml/messages/Data.cpp2
-rw-r--r--src/uscxml/messages/Event.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/uscxml/messages/Data.cpp b/src/uscxml/messages/Data.cpp
index 911730a..7afad43 100644
--- a/src/uscxml/messages/Data.cpp
+++ b/src/uscxml/messages/Data.cpp
@@ -97,7 +97,7 @@ Data::Data(const Arabica::DOM::Node<std::string>& dom) {
std::string key;
switch (child.getNodeType()) {
case Arabica::DOM::Node_base::ELEMENT_NODE:
- key = TAGNAME(child);
+ key = TAGNAME_CAST(child);
break;
case Arabica::DOM::Node_base::ATTRIBUTE_NODE:
key = ((Arabica::DOM::Attr<std::string>)child).getName();
diff --git a/src/uscxml/messages/Event.cpp b/src/uscxml/messages/Event.cpp
index f8a880f..43c6600 100644
--- a/src/uscxml/messages/Event.cpp
+++ b/src/uscxml/messages/Event.cpp
@@ -121,8 +121,8 @@ Event Event::fromXML(const std::string& xmlString) {
Arabica::DOM::NodeList<std::string> properties = payloadElem.getElementsByTagName("scxml:property");
if (properties.getLength() > 0) {
for (int i = 0; i < properties.getLength(); i++) {
- if (HAS_ATTR(properties.item(i), "name")) {
- std::string key = ATTR(properties.item(i), "name");
+ if (HAS_ATTR_CAST(properties.item(i), "name")) {
+ std::string key = ATTR_CAST(properties.item(i), "name");
std::string value;
Arabica::DOM::NodeList<std::string> childs = properties.item(i).getChildNodes();
for (int j = 0; j < childs.getLength(); j++) {