diff options
author | Stefan Radomski <sradomski@mintwerk.de> | 2016-02-24 10:50:32 (GMT) |
---|---|---|
committer | Stefan Radomski <sradomski@mintwerk.de> | 2016-02-24 10:50:32 (GMT) |
commit | cf19f11b8d2bd6d9566c7528fbed40af06928abf (patch) | |
tree | a373b8e934fa78a1bf9db8afca2e9854437e45da /src/uscxml/transform/FlatStateIdentifier.h | |
parent | 7212d5a3dbbd2845d09df96b2c345132c8a24931 (diff) | |
download | uscxml-cf19f11b8d2bd6d9566c7528fbed40af06928abf.zip uscxml-cf19f11b8d2bd6d9566c7528fbed40af06928abf.tar.gz uscxml-cf19f11b8d2bd6d9566c7528fbed40af06928abf.tar.bz2 |
Some more refactoring and VHDL transformation
Diffstat (limited to 'src/uscxml/transform/FlatStateIdentifier.h')
-rw-r--r-- | src/uscxml/transform/FlatStateIdentifier.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/uscxml/transform/FlatStateIdentifier.h b/src/uscxml/transform/FlatStateIdentifier.h index 99ae084..2d62651 100644 --- a/src/uscxml/transform/FlatStateIdentifier.h +++ b/src/uscxml/transform/FlatStateIdentifier.h @@ -49,14 +49,14 @@ public: FlatStateIdentifier(const Arabica::XPath::NodeSet<std::string>& activeStates, const Arabica::XPath::NodeSet<std::string>& alreadyEnteredStates, const std::map<std::string, Arabica::XPath::NodeSet<std::string> >& historyStates) { - for (int i = 0; i < activeStates.size(); i++) { + for (size_t i = 0; i < activeStates.size(); i++) { active.push_back(ATTR_CAST(activeStates[i], "id")); } - for (int i = 0; i < alreadyEnteredStates.size(); i++) { + for (size_t i = 0; i < alreadyEnteredStates.size(); i++) { const Arabica::DOM::NodeList<std::string>& children = alreadyEnteredStates[i].getChildNodes(); bool isRelevant = false; - for (int j = 0; j < children.getLength(); j++) { + for (size_t j = 0; j < children.getLength(); j++) { if (children.item(j).getNodeType() != Arabica::DOM::Node_base::ELEMENT_NODE) continue; if (iequals(LOCALNAME_CAST(children.item(j)), "data") || iequals(LOCALNAME_CAST(children.item(j)), "datamodel")) { @@ -70,7 +70,7 @@ public: std::map<std::string, Arabica::XPath::NodeSet<std::string> >::const_iterator histIter; for (histIter = historyStates.begin(); histIter != historyStates.end(); histIter++) { - for (int i = 0; i < histIter->second.size(); i++) { + for (size_t i = 0; i < histIter->second.size(); i++) { histories[histIter->first].push_back(ATTR_CAST(histIter->second[i], "id")); } } |