diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-04-07 10:40:56 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-04-07 10:40:56 (GMT) |
commit | 46d089f8642501cf2ffc4a531add0a3a8eaa268e (patch) | |
tree | 7d1d3d59dbc745224a883807236effbbb4ecb176 /src/uscxml/plugins/ioprocessor/scxml | |
parent | 1e6ba139ac12c688f025745812d381915775b1fb (diff) | |
download | uscxml-46d089f8642501cf2ffc4a531add0a3a8eaa268e.zip uscxml-46d089f8642501cf2ffc4a531add0a3a8eaa268e.tar.gz uscxml-46d089f8642501cf2ffc4a531add0a3a8eaa268e.tar.bz2 |
Some more bugfixes for revised W3C tests
Diffstat (limited to 'src/uscxml/plugins/ioprocessor/scxml')
-rw-r--r-- | src/uscxml/plugins/ioprocessor/scxml/SCXMLIOProcessor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uscxml/plugins/ioprocessor/scxml/SCXMLIOProcessor.cpp b/src/uscxml/plugins/ioprocessor/scxml/SCXMLIOProcessor.cpp index 387075b..3dabafe 100644 --- a/src/uscxml/plugins/ioprocessor/scxml/SCXMLIOProcessor.cpp +++ b/src/uscxml/plugins/ioprocessor/scxml/SCXMLIOProcessor.cpp @@ -82,7 +82,7 @@ void SCXMLIOProcessor::send(const SendRequest& req) { */ _interpreter->receiveInternal(reqCopy); - } else if(reqCopy.target.find_first_of("#_scxml_") == 0) { + } else if(boost::starts_with(reqCopy.target, "#_scxml_")) { /** * #_scxml_sessionid: If the target is the special term '#_scxml_sessionid', * where sessionid is the id of an SCXML session that is accessible to the @@ -113,7 +113,7 @@ void SCXMLIOProcessor::send(const SendRequest& req) { LOG(ERROR) << "Can not send to parent, we were not invoked" << std::endl; _interpreter->receiveInternal(Event("error.communication", Event::PLATFORM)); } - } else if (reqCopy.target.find_first_of("#_") == 0) { + } else if (boost::starts_with(reqCopy.target, "#_") == 0) { /** * #_invokeid: If the target is the special term '#_invokeid', where invokeid * is the invokeid of an SCXML session that the sending session has created |