Remove unneeded conversions
This commit is contained in:
@@ -833,10 +833,10 @@ int main( int argc, const char ** argv )
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
const char* v = "failed";
|
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);
|
XMLTest("Attribute: string default", false, queryResult == XML_SUCCESS);
|
||||||
queryResult = element->QueryStringAttribute("attrib", &v);
|
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: string", "100", v);
|
||||||
}
|
}
|
||||||
XMLTest("Attribute: unsigned", unsigned(100), element->UnsignedAttribute("attrib"), true);
|
XMLTest("Attribute: unsigned", unsigned(100), element->UnsignedAttribute("attrib"), true);
|
||||||
|
|||||||
Reference in New Issue
Block a user