From e269b2e91ff4310e0802a3c2fdfa483422099474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20H=C3=B6pfinger?= Date: Thu, 30 May 2024 19:53:44 +0200 Subject: [PATCH] Update QueryIntText and QueryUnsignedText functions to use int32_t and uint32_t types instead of int and unsigned in tinyxml2.cpp and tinyxml2.h. --- tinyxml2.cpp | 4 ++-- tinyxml2.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 5108bae..8112ec8 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -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(); diff --git a/tinyxml2.h b/tinyxml2.h index dd3185a..5a8c451 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -1626,9 +1626,9 @@ public: to the requested type, and XML_NO_TEXT_NODE if there is no child text to query. */ - XMLError QueryIntText( int* ival ) const; + XMLError QueryIntText( int32_t* ival ) const; /// See QueryIntText() - XMLError QueryUnsignedText( unsigned* uval ) const; + XMLError QueryUnsignedText( uint32_t* uval ) const; /// See QueryIntText() XMLError QueryInt64Text(int64_t* uval) const; /// See QueryIntText()