1
0
mirror of https://github.com/leethomason/tinyxml2.git synced 2026-07-29 15:13:01 +04:00

Update attribute query functions to use int32_t and uint32_t types.

- Changed QueryIntAttribute parameter type from int* to int32_t*
- Changed QueryUnsignedAttribute parameter type from unsigned int* to uint32_t*
This commit is contained in:
Franz Höpfinger
2024-05-30 19:21:27 +02:00
parent fd26a5ee1f
commit 5d219c893b
+2 -2
View File
@@ -1343,7 +1343,7 @@ public:
QueryIntAttribute( "foo", &value ); // if "foo" isn't found, value will still be 10
@endverbatim
*/
XMLError QueryIntAttribute( const char* name, int* value ) const {
XMLError QueryIntAttribute( const char* name, int32_t* value ) const {
const XMLAttribute* a = FindAttribute( name );
if ( !a ) {
return XML_NO_ATTRIBUTE;
@@ -1352,7 +1352,7 @@ public:
}
/// See QueryIntAttribute()
XMLError QueryUnsignedAttribute( const char* name, unsigned int* value ) const {
XMLError QueryUnsignedAttribute( const char* name, uint32_t* value ) const {
const XMLAttribute* a = FindAttribute( name );
if ( !a ) {
return XML_NO_ATTRIBUTE;