summaryrefslogtreecommitdiffstats
path: root/src/uscxml/plugins/element/postpone
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-10-26 23:47:24 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-10-26 23:47:24 (GMT)
commit45ba8b93098f4f64a2dbc1e0a4c15c5ddb1d6559 (patch)
treec82a47a2dfb417bb5f0305254f45fa84d69e0a57 /src/uscxml/plugins/element/postpone
parentcb4356f33044fd42958cdede5dfe93ef4516173a (diff)
downloaduscxml-45ba8b93098f4f64a2dbc1e0a4c15c5ddb1d6559.zip
uscxml-45ba8b93098f4f64a2dbc1e0a4c15c5ddb1d6559.tar.gz
uscxml-45ba8b93098f4f64a2dbc1e0a4c15c5ddb1d6559.tar.bz2
Performance: replaced boost::iequals for strings by inline function
Diffstat (limited to 'src/uscxml/plugins/element/postpone')
-rw-r--r--src/uscxml/plugins/element/postpone/PostponeElement.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uscxml/plugins/element/postpone/PostponeElement.cpp b/src/uscxml/plugins/element/postpone/PostponeElement.cpp
index de2426c..f9ddd5f 100644
--- a/src/uscxml/plugins/element/postpone/PostponeElement.cpp
+++ b/src/uscxml/plugins/element/postpone/PostponeElement.cpp
@@ -64,7 +64,7 @@ void PostponeElement::enterElement(const Arabica::DOM::Node<std::string>& node)
// chaining causes the event to fire if the condition was true since postponing
bool chained = false;
if (HAS_ATTR(node, "chaining")) {
- chained = boost::iequals(ATTR(node, "chaining"), "true");
+ chained = iequals(ATTR(node, "chaining"), "true");
}
// when will we refire the event?
@@ -102,9 +102,9 @@ void PostponeElement::enterElement(const Arabica::DOM::Node<std::string>& node)
uint64_t timeout = 0;
NumAttr timeoutAttr(timeoutStr);
- if (boost::iequals(timeoutAttr.unit, "s")) {
+ if (iequals(timeoutAttr.unit, "s")) {
timeout = strTo<int>(timeoutAttr.value) * 1000;
- } else if (boost::iequals(timeoutAttr.unit, "ms")) {
+ } else if (iequals(timeoutAttr.unit, "ms")) {
timeout = strTo<int>(timeoutAttr.value);
}
if (timeout > 0) {