From fd26a5ee1fd891058cf18758a50289bbd2aa1a93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20H=C3=B6pfinger?= Date: Thu, 30 May 2024 19:15:52 +0200 Subject: [PATCH] Update QueryIntValue and QueryUnsignedValue to use int32_t and uint32_t types for better consistency. --- tinyxml2.cpp | 4 ++-- tinyxml2.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 903d690..2e33d08 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -1481,7 +1481,7 @@ void XMLAttribute::SetName( const char* n ) } -XMLError XMLAttribute::QueryIntValue( int* value ) const +XMLError XMLAttribute::QueryIntValue( int32_t* value ) const { if ( XMLUtil::ToInt( Value(), value )) { return XML_SUCCESS; @@ -1490,7 +1490,7 @@ XMLError XMLAttribute::QueryIntValue( int* value ) const } -XMLError XMLAttribute::QueryUnsignedValue( unsigned int* value ) const +XMLError XMLAttribute::QueryUnsignedValue( uint32_t* value ) const { if ( XMLUtil::ToUnsigned( Value(), value )) { return XML_SUCCESS; diff --git a/tinyxml2.h b/tinyxml2.h index 7586f7b..2baad3a 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -1209,9 +1209,9 @@ public: in the provided parameter. The function will return XML_SUCCESS on success, and XML_WRONG_ATTRIBUTE_TYPE if the conversion is not successful. */ - XMLError QueryIntValue( int* value ) const; + XMLError QueryIntValue( int32_t* value ) const; /// See QueryIntValue - XMLError QueryUnsignedValue( unsigned int* value ) const; + XMLError QueryUnsignedValue( uint32_t* value ) const; /// See QueryIntValue XMLError QueryInt64Value(int64_t* value) const; /// See QueryIntValue