1
0
mirror of https://github.com/leethomason/tinyxml2.git synced 2026-07-21 19:23:00 +04:00

Update attribute handling to use int32_t and uint32_t types.

The commit changes the attribute handling in the code to utilize int32_t and uint32_t types for better consistency and compatibility.
This commit is contained in:
Franz Höpfinger
2024-05-30 20:31:00 +02:00
parent 53d8ec5573
commit 8df9b25bb9
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -2777,7 +2777,7 @@ void XMLPrinter::PushAttribute( const char* name, const char* value )
}
void XMLPrinter::PushAttribute( const char* name, int v )
void XMLPrinter::PushAttribute( const char* name, int32_t v )
{
char buf[BUF_SIZE];
XMLUtil::ToStr( v, buf, BUF_SIZE );
@@ -2785,7 +2785,7 @@ void XMLPrinter::PushAttribute( const char* name, int v )
}
void XMLPrinter::PushAttribute( const char* name, unsigned v )
void XMLPrinter::PushAttribute( const char* name, uint32_t v )
{
char buf[BUF_SIZE];
XMLUtil::ToStr( v, buf, BUF_SIZE );
+2 -2
View File
@@ -2258,8 +2258,8 @@ public:
void OpenElement( const char* name, bool compactMode=false );
/// If streaming, add an attribute to an open element.
void PushAttribute( const char* name, const char* value );
void PushAttribute( const char* name, int value );
void PushAttribute( const char* name, unsigned value );
void PushAttribute( const char* name, int32_t value );
void PushAttribute( const char* name, uint32_t value );
void PushAttribute( const char* name, int64_t value );
void PushAttribute( const char* name, uint64_t value );
void PushAttribute( const char* name, bool value );