summaryrefslogtreecommitdiffstats
path: root/test/src
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 /test/src
parent37f8735a66aadd0e3f019f5edbb9356cf4a7b974 (diff)
downloaduscxml-6e1a4a67d5b17e92135cd3f5daf51bf044d76e40.zip
uscxml-6e1a4a67d5b17e92135cd3f5daf51bf044d76e40.tar.gz
uscxml-6e1a4a67d5b17e92135cd3f5daf51bf044d76e40.tar.bz2
Got rid of more dynamic_casts
Diffstat (limited to 'test/src')
-rw-r--r--test/src/test-w3c.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/src/test-w3c.cpp b/test/src/test-w3c.cpp
index 65b56dd..7eb54a7 100644
--- a/test/src/test-w3c.cpp
+++ b/test/src/test-w3c.cpp
@@ -135,7 +135,7 @@ class W3CStatusMonitor : public uscxml::InterpreterMonitor {
void printNodeSet(const Arabica::XPath::NodeSet<std::string>& config) {
std::string seperator;
for (int i = 0; i < config.size(); i++) {
- std::cout << seperator << ATTR(config[i], "id");
+ std::cout << seperator << ATTR_CAST(config[i], "id");
seperator = ", ";
}
}
@@ -144,13 +144,13 @@ class W3CStatusMonitor : public uscxml::InterpreterMonitor {
Arabica::XPath::NodeSet<std::string> config = interpreter.getConfiguration();
if (config.size() == 1) {
if (withFlattening) {
- std::cout << ATTR(config[0], "id") << std::endl;
- if (boost::starts_with(ATTR(config[0], "id"), "active-pass")) {
+ std::cout << ATTR_CAST(config[0], "id") << std::endl;
+ if (boost::starts_with(ATTR_CAST(config[0], "id"), "active-pass")) {
std::cout << "TEST SUCCEEDED" << std::endl;
exit(EXIT_SUCCESS);
}
} else {
- if (boost::iequals(ATTR(config[0], "id"), "pass")) {
+ if (boost::iequals(ATTR_CAST(config[0], "id"), "pass")) {
std::cout << "TEST SUCCEEDED" << std::endl;
exit(EXIT_SUCCESS);
}