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 /test/src/test-arabica-namespaces.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 'test/src/test-arabica-namespaces.cpp')
-rw-r--r-- | test/src/test-arabica-namespaces.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/src/test-arabica-namespaces.cpp b/test/src/test-arabica-namespaces.cpp index ced9578..5d5d90d 100644 --- a/test/src/test-arabica-namespaces.cpp +++ b/test/src/test-arabica-namespaces.cpp @@ -67,7 +67,7 @@ void insertBar(std::pair<Document<std::string>, NameSpaceInfo>& parsed) { Document<std::string> document = parsed.first; Node<std::string> root = document.getDocumentElement(); - for (int i = 0; i < 3; i++) { + for (size_t i = 0; i < 3; i++) { Element<std::string> bar = document.createElementNS(nsInfo.nsURL, "bar"); // if (nsInfo.nsToPrefix.find(nsInfo.nsURL) != nsInfo.nsToPrefix.end()) nsInfo.setPrefix(bar); @@ -80,7 +80,7 @@ void insertBaz(std::pair<Document<std::string>, NameSpaceInfo>& parsed) { Document<std::string> document = parsed.first; Node<std::string> root = document.getDocumentElement(); - for (int i = 0; i < 3; i++) { + for (size_t i = 0; i < 3; i++) { Element<std::string> baz = document.createElementNS(nsInfo.nsURL, "baz"); nsInfo.setPrefix(baz); root.appendChild(baz); @@ -102,7 +102,7 @@ static void validateRootFoo(std::pair<Document<std::string>, NameSpaceInfo>& par NodeSet<std::string> foosXPath = _xpath.evaluate("//" + nsInfo.xpathPrefix + "foo", root).asNodeSet(); assert(foosXPath.size() == 3); - for (int i = 0; i < 3; i++) { + for (size_t i = 0; i < 3; i++) { assert(foosFiltered[i] == foosXPath[i]); assert(TAGNAME_CAST(foosFiltered[i]) == nsInfo.xmlNSPrefix + "foo"); assert(LOCALNAME_CAST(foosFiltered[i]) == "foo"); @@ -124,7 +124,7 @@ static void validateRootFooBar(std::pair<Document<std::string>, NameSpaceInfo>& NodeSet<std::string> barsXPath = _xpath.evaluate("//" + nsInfo.xpathPrefix + "bar", root).asNodeSet(); assert(barsXPath.size() == 3); - for (int i = 0; i < 3; i++) { + for (size_t i = 0; i < 3; i++) { assert(barsFiltered[i] == barsXPath[i]); assert(TAGNAME_CAST(barsFiltered[i]) == nsInfo.xmlNSPrefix + "bar"); assert(LOCALNAME_CAST(barsFiltered[i]) == "bar"); @@ -149,7 +149,7 @@ static void validateRootFooBarBaz(std::pair<Document<std::string>, NameSpaceInfo NodeSet<std::string> bazsXPath = _xpath.evaluate("//" + nsInfo.xpathPrefix + "baz", root).asNodeSet(); assert(bazsXPath.size() == 3); - for (int i = 0; i < 3; i++) { + for (size_t i = 0; i < 3; i++) { assert(bazsFiltered[i] == bazsXPath[i]); assert(TAGNAME_CAST(bazsFiltered[i]) == nsInfo.xmlNSPrefix + "baz"); assert(LOCALNAME_CAST(bazsFiltered[i]) == "baz"); |