summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-04-03 16:11:57 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-04-03 16:11:57 (GMT)
commit2ef535ff30882be189ac0937096d9f0f51d5723a (patch)
tree1320d9275df8fe4db9dc1422c5aaacf8895cf110
parent21679512089060a7c3e5efdebd799d6237d40ca5 (diff)
downloaduscxml-2ef535ff30882be189ac0937096d9f0f51d5723a.zip
uscxml-2ef535ff30882be189ac0937096d9f0f51d5723a.tar.gz
uscxml-2ef535ff30882be189ac0937096d9f0f51d5723a.tar.bz2
Fixed two stupid bugs
-rw-r--r--src/uscxml/Interpreter.cpp2
-rw-r--r--test/src/test-predicates.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/uscxml/Interpreter.cpp b/src/uscxml/Interpreter.cpp
index 6caeb76..4700056 100644
--- a/src/uscxml/Interpreter.cpp
+++ b/src/uscxml/Interpreter.cpp
@@ -679,7 +679,7 @@ void Interpreter::delayedSend(void* userdata, std::string eventName) {
} else {
IOProcessor ioProc;
if (sendReq.type.length() > 0)
- IOProcessor ioProc = INSTANCE->getIOProcessor(sendReq.type);
+ ioProc = INSTANCE->getIOProcessor(sendReq.type);
if (ioProc) {
try {
ioProc.send(sendReq);
diff --git a/test/src/test-predicates.cpp b/test/src/test-predicates.cpp
index 08aa3e1..58faffb 100644
--- a/test/src/test-predicates.cpp
+++ b/test/src/test-predicates.cpp
@@ -13,6 +13,7 @@ int main(int argc, char** argv) {
using namespace Arabica::XPath;
Interpreter* interpreter = Interpreter::fromURI(argv[1]);
+ interpreter->init();
assert(interpreter);
Node<std::string> atomicState = interpreter->getState("atomic");