diff options
author | Dmitry-Me <wipedout@yandex.ru> | 2018-01-09 00:20:45 +0300 |
---|---|---|
committer | Dmitry-Me <wipedout@yandex.ru> | 2018-01-09 00:20:45 +0300 |
commit | 63d8de6278f34d63dac335ad02f03a029193bdd9 (patch) | |
tree | 67f343dbe111d6685d463a7be852b08cf22c2573 /xmltest.cpp | |
parent | 703f91e6b8135298f70dc9b3efe38f713f8dfb22 (diff) |
Remove unneeded conversions
Diffstat (limited to 'xmltest.cpp')
-rw-r--r-- | xmltest.cpp | 4 |
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);
|