summaryrefslogtreecommitdiffstats
path: root/src/uscxml/interpreter
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-05-14 11:42:18 (GMT)
committerStefan Radomski <github@mintwerk.de>2017-05-14 11:42:18 (GMT)
commit56074d3bd2ab4c8220b67b3da56ff55bbb286bae (patch)
treead507c0f39088bb367fe7bb295f9dba0396064d2 /src/uscxml/interpreter
parent1453feb7ca59167c219afb21dfba4ed3ea68d176 (diff)
downloaduscxml-56074d3bd2ab4c8220b67b3da56ff55bbb286bae.zip
uscxml-56074d3bd2ab4c8220b67b3da56ff55bbb286bae.tar.gz
uscxml-56074d3bd2ab4c8220b67b3da56ff55bbb286bae.tar.bz2
Beautified code and some light refactoring
Diffstat (limited to 'src/uscxml/interpreter')
-rw-r--r--src/uscxml/interpreter/BasicContentExecutor.cpp3
-rw-r--r--src/uscxml/interpreter/ContentExecutorImpl.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/uscxml/interpreter/BasicContentExecutor.cpp b/src/uscxml/interpreter/BasicContentExecutor.cpp
index 5defce3..4443237 100644
--- a/src/uscxml/interpreter/BasicContentExecutor.cpp
+++ b/src/uscxml/interpreter/BasicContentExecutor.cpp
@@ -700,8 +700,7 @@ Data BasicContentExecutor::elementAsData(XERCESC_NS::DOMElement* element, bool a
Data d = _callbacks->getAsData(contentSS.str());
if (!d.empty())
return d;
- }
- catch (ErrorEvent &) {
+ } catch (ErrorEvent &) {
return Data(spaceNormalize(contentSS.str()), Data::VERBATIM);
}
}
diff --git a/src/uscxml/interpreter/ContentExecutorImpl.h b/src/uscxml/interpreter/ContentExecutorImpl.h
index 82acc1c..5b39108 100644
--- a/src/uscxml/interpreter/ContentExecutorImpl.h
+++ b/src/uscxml/interpreter/ContentExecutorImpl.h
@@ -59,7 +59,7 @@ public:
uint32_t iteration) = 0;
virtual Data evalAsData(const std::string& expr) = 0;
- virtual void eval(const std::string& expr) { evalAsData(expr); }
+ virtual void eval(const std::string& expr) = 0;
virtual Data getAsData(const std::string& expr) = 0;
virtual void assign(const std::string& location, const Data& data, const std::map<std::string, std::string>& attrs) = 0;