mirror of
https://github.com/leethomason/tinyxml2.git
synced 2026-07-25 21:23:00 +04:00
Update QueryIntValue and QueryUnsignedValue to use int32_t and uint32_t types for better consistency.
This commit is contained in:
+2
-2
@@ -1481,7 +1481,7 @@ void XMLAttribute::SetName( const char* n )
|
||||
}
|
||||
|
||||
|
||||
XMLError XMLAttribute::QueryIntValue( int* value ) const
|
||||
XMLError XMLAttribute::QueryIntValue( int32_t* value ) const
|
||||
{
|
||||
if ( XMLUtil::ToInt( Value(), value )) {
|
||||
return XML_SUCCESS;
|
||||
@@ -1490,7 +1490,7 @@ XMLError XMLAttribute::QueryIntValue( int* value ) const
|
||||
}
|
||||
|
||||
|
||||
XMLError XMLAttribute::QueryUnsignedValue( unsigned int* value ) const
|
||||
XMLError XMLAttribute::QueryUnsignedValue( uint32_t* value ) const
|
||||
{
|
||||
if ( XMLUtil::ToUnsigned( Value(), value )) {
|
||||
return XML_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user