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

Update QueryIntText and QueryUnsignedText functions to use int32_t and uint32_t types instead of int and unsigned in tinyxml2.cpp and tinyxml2.h.

This commit is contained in:
Franz Höpfinger
2024-05-30 19:53:44 +02:00
parent cd8c1a6322
commit e269b2e91f
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1777,7 +1777,7 @@ void XMLElement::SetText( double v )
}
XMLError XMLElement::QueryIntText( int* ival ) const
XMLError XMLElement::QueryIntText( int32_t* ival ) const
{
if ( FirstChild() && FirstChild()->ToText() ) {
const char* t = FirstChild()->Value();
@@ -1790,7 +1790,7 @@ XMLError XMLElement::QueryIntText( int* ival ) const
}
XMLError XMLElement::QueryUnsignedText( unsigned* uval ) const
XMLError XMLElement::QueryUnsignedText( uint32_t* uval ) const
{
if ( FirstChild() && FirstChild()->ToText() ) {
const char* t = FirstChild()->Value();