Remove unneeded conversions
diff --git a/xmltest.cpp b/xmltest.cpp
index a647e63..0c47d84 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -833,10 +833,10 @@
}
{
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);