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:
+2
-2
@@ -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
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user