diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-04-03 16:11:57 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-04-03 16:11:57 (GMT) |
commit | 2ef535ff30882be189ac0937096d9f0f51d5723a (patch) | |
tree | 1320d9275df8fe4db9dc1422c5aaacf8895cf110 | |
parent | 21679512089060a7c3e5efdebd799d6237d40ca5 (diff) | |
download | uscxml-2ef535ff30882be189ac0937096d9f0f51d5723a.zip uscxml-2ef535ff30882be189ac0937096d9f0f51d5723a.tar.gz uscxml-2ef535ff30882be189ac0937096d9f0f51d5723a.tar.bz2 |
Fixed two stupid bugs
-rw-r--r-- | src/uscxml/Interpreter.cpp | 2 | ||||
-rw-r--r-- | test/src/test-predicates.cpp | 1 |
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"); |