mirror of
https://github.com/leethomason/tinyxml2.git
synced 2026-07-21 19: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;
|
||||
|
||||
+2
-2
@@ -1209,9 +1209,9 @@ public:
|
||||
in the provided parameter. The function will return XML_SUCCESS on success,
|
||||
and XML_WRONG_ATTRIBUTE_TYPE if the conversion is not successful.
|
||||
*/
|
||||
XMLError QueryIntValue( int* value ) const;
|
||||
XMLError QueryIntValue( int32_t* value ) const;
|
||||
/// See QueryIntValue
|
||||
XMLError QueryUnsignedValue( unsigned int* value ) const;
|
||||
XMLError QueryUnsignedValue( uint32_t* value ) const;
|
||||
/// See QueryIntValue
|
||||
XMLError QueryInt64Value(int64_t* value) const;
|
||||
/// See QueryIntValue
|
||||
|
||||
Reference in New Issue
Block a user