1
0
mirror of https://github.com/leethomason/tinyxml2.git synced 2026-07-30 07:32:59 +04:00

tweaks to bool serialization

This commit is contained in:
Lee Thomason
2016-12-29 11:19:17 -08:00
parent f458d265c1
commit c5c99c2ba0
3 changed files with 10 additions and 18 deletions
+2 -2
View File
@@ -757,12 +757,12 @@ int main( int argc, const char ** argv )
const char* result = element->Attribute("attrib");
XMLTest("Bool true is 'true'", "true", result);
XMLUtil::SetBool("1", "0");
XMLUtil::SetBoolSerialization("1", "0");
element->SetAttribute("attrib", true);
result = element->Attribute("attrib");
XMLTest("Bool true is '1'", "1", result);
XMLUtil::SetBool(0, 0);
XMLUtil::SetBoolSerialization(0, 0);
}
{
element->SetAttribute("attrib", 100.0);