mirror of
https://github.com/leethomason/tinyxml2.git
synced 2026-07-21 19:23:00 +04:00
Update attribute setting functions to use specific integer types
The commit updates attribute setting functions to use int32_t and uint32_t types for better clarity and consistency.
This commit is contained in:
+2
-2
@@ -1470,12 +1470,12 @@ public:
|
||||
a->SetAttribute( value );
|
||||
}
|
||||
/// Sets the named attribute to value.
|
||||
void SetAttribute( const char* name, int value ) {
|
||||
void SetAttribute( const char* name, int32_t value ) {
|
||||
XMLAttribute* a = FindOrCreateAttribute( name );
|
||||
a->SetAttribute( value );
|
||||
}
|
||||
/// Sets the named attribute to value.
|
||||
void SetAttribute( const char* name, unsigned value ) {
|
||||
void SetAttribute( const char* name, uint32_t value ) {
|
||||
XMLAttribute* a = FindOrCreateAttribute( name );
|
||||
a->SetAttribute( value );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user