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/messages/Data.cpp | |
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/messages/Data.cpp')
-rw-r--r-- | src/uscxml/messages/Data.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/uscxml/messages/Data.cpp b/src/uscxml/messages/Data.cpp index 53d4571..b555ed8 100644 --- a/src/uscxml/messages/Data.cpp +++ b/src/uscxml/messages/Data.cpp @@ -83,7 +83,7 @@ Data::Data(const Arabica::DOM::Node<std::string>& dom) { if (dom.hasAttributes()) { Arabica::DOM::NamedNodeMap<std::string> attributes = dom.getAttributes(); - for (int i = 0; i < attributes.getLength(); i++) { + for (size_t i = 0; i < attributes.getLength(); i++) { Arabica::DOM::Node<std::string> attribute = attributes.item(i); // Interpreter::dump(attribute); @@ -96,7 +96,7 @@ Data::Data(const Arabica::DOM::Node<std::string>& dom) { if (dom.hasChildNodes()) { Arabica::DOM::NodeList<std::string> children = dom.getChildNodes(); - for (int i = 0; i < children.getLength(); i++) { + for (size_t i = 0; i < children.getLength(); i++) { Arabica::DOM::Node<std::string> child = children.item(i); // Interpreter::dump(child); std::string key; @@ -307,7 +307,7 @@ std::ostream& operator<< (std::ostream& os, const Data& data) { std::string Data::toJSON(const Data& data) { std::stringstream os; std::string indent; - for (int i = 0; i < _dataIndentation; i++) { + for (size_t i = 0; i < _dataIndentation; i++) { indent += " "; } if (false) { @@ -352,7 +352,7 @@ std::string Data::toJSON(const Data& data) { // empty string is handled below if (data.type == Data::VERBATIM) { os << "\""; - for (int i = 0; i < data.atom.size(); i++) { + for (size_t i = 0; i < data.atom.size(); i++) { // escape string if (false) { } else if (data.atom[i] == '"') { |