Quellcode durchsuchen

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.
Franz Höpfinger vor 1 Jahr
Ursprung
Commit
53d8ec5573
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      tinyxml2.h

+ 2 - 2
tinyxml2.h

@@ -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 );
     }