Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/leethomason/tinyxml2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry-Me <wipedout@yandex.ru>2018-01-09 00:20:45 +0300
committerDmitry-Me <wipedout@yandex.ru>2018-01-09 00:20:45 +0300
commit63d8de6278f34d63dac335ad02f03a029193bdd9 (patch)
tree67f343dbe111d6685d463a7be852b08cf22c2573 /xmltest.cpp
parent703f91e6b8135298f70dc9b3efe38f713f8dfb22 (diff)
Remove unneeded conversions
Diffstat (limited to 'xmltest.cpp')
-rw-r--r--xmltest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmltest.cpp b/xmltest.cpp
index a647e63..0c47d84 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -833,10 +833,10 @@ int main( int argc, const char ** argv )
}
{
const char* v = "failed";
- int queryResult = element->QueryStringAttribute("not-attrib", &v);
+ XMLError queryResult = element->QueryStringAttribute("not-attrib", &v);
XMLTest("Attribute: string default", false, queryResult == XML_SUCCESS);
queryResult = element->QueryStringAttribute("attrib", &v);
- XMLTest("Attribute: string", (int)XML_SUCCESS, queryResult, true);
+ XMLTest("Attribute: string", XML_SUCCESS, queryResult, true);
XMLTest("Attribute: string", "100", v);
}
XMLTest("Attribute: unsigned", unsigned(100), element->UnsignedAttribute("attrib"), true);