From 8fed517e5db95854c49e26f1c2feeb3ae736c6d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20H=C3=B6pfinger?= Date: Thu, 30 May 2024 19:53:50 +0200 Subject: [PATCH] Update SetText method parameters to use int32_t and uint32_t. This change updates the SetText method in both the .cpp and .h files to use int32_t and uint32_t types for better consistency and clarity. --- tinyxml2.cpp | 4 ++-- tinyxml2.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 8112ec8..1f7f392 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -1723,7 +1723,7 @@ void XMLElement::SetText( const char* inText ) } -void XMLElement::SetText( int v ) +void XMLElement::SetText( int32_t v ) { char buf[BUF_SIZE]; XMLUtil::ToStr( v, buf, BUF_SIZE ); @@ -1731,7 +1731,7 @@ void XMLElement::SetText( int v ) } -void XMLElement::SetText( unsigned v ) +void XMLElement::SetText( uint32_t v ) { char buf[BUF_SIZE]; XMLUtil::ToStr( v, buf, BUF_SIZE ); diff --git a/tinyxml2.h b/tinyxml2.h index 5a8c451..66c8b36 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -1586,9 +1586,9 @@ public: */ void SetText( const char* inText ); /// Convenience method for setting text inside an element. See SetText() for important limitations. - void SetText( int value ); + void SetText( int32_t value ); /// Convenience method for setting text inside an element. See SetText() for important limitations. - void SetText( unsigned value ); + void SetText( uint32_t value ); /// Convenience method for setting text inside an element. See SetText() for important limitations. void SetText(int64_t value); /// Convenience method for setting text inside an element. See SetText() for important limitations.