1
0
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:
Franz Höpfinger
2024-05-30 20:28:46 +02:00
parent 5e27269c04
commit 53d8ec5573
+2 -2
View File
@@ -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 );
}