Skip to content

Commit

Permalink
Update attribute setting functions to use specific integer types
Browse files Browse the repository at this point in the history
The commit updates attribute setting functions to use int32_t and uint32_t types for better clarity and consistency.
  • Loading branch information
diplfranzhoepfinger committed May 30, 2024
1 parent 5e27269 commit 53d8ec5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tinyxml2.h
Original file line number Diff line number Diff line change
Expand Up @@ -1470,12 +1470,12 @@ class TINYXML2_LIB XMLElement : public XMLNode
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 );
}
Expand Down

0 comments on commit 53d8ec5

Please sign in to comment.