Update comments to reflect single successful return type
diff --git a/tinyxml2.h b/tinyxml2.h
index 0b5e3cc..8d5eb2a 100755
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -1129,7 +1129,7 @@
}
/** QueryIntValue interprets the attribute as an integer, and returns the value
- in the provided parameter. The function will return XML_NO_ERROR on success,
+ 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;
@@ -1273,7 +1273,7 @@
}
/** Given an attribute name, QueryIntAttribute() returns
- XML_NO_ERROR, XML_WRONG_ATTRIBUTE_TYPE if the conversion
+ XML_SUCCESS, XML_WRONG_ATTRIBUTE_TYPE if the conversion
can't be performed, or XML_NO_ATTRIBUTE if the attribute
doesn't exist. If successful, the result of the conversion
will be written to 'value'. If not successful, nothing will
@@ -1338,7 +1338,7 @@
/** Given an attribute name, QueryAttribute() returns
- XML_NO_ERROR, XML_WRONG_ATTRIBUTE_TYPE if the conversion
+ XML_SUCCESS, XML_WRONG_ATTRIBUTE_TYPE if the conversion
can't be performed, or XML_NO_ATTRIBUTE if the attribute
doesn't exist. It is overloaded for the primitive types,
and is a generally more convenient replacement of
@@ -1612,7 +1612,7 @@
/**
Parse an XML file from a character string.
- Returns XML_NO_ERROR (0) on success, or
+ Returns XML_SUCCESS (0) on success, or
an errorID.
You may optionally pass in the 'nBytes', which is
@@ -1624,7 +1624,7 @@
/**
Load an XML file from disk.
- Returns XML_NO_ERROR (0) on success, or
+ Returns XML_SUCCESS (0) on success, or
an errorID.
*/
XMLError LoadFile( const char* filename );
@@ -1637,14 +1637,14 @@
not text in order for TinyXML-2 to correctly
do newline normalization.
- Returns XML_NO_ERROR (0) on success, or
+ Returns XML_SUCCESS (0) on success, or
an errorID.
*/
XMLError LoadFile( FILE* );
/**
Save the XML file to disk.
- Returns XML_NO_ERROR (0) on success, or
+ Returns XML_SUCCESS (0) on success, or
an errorID.
*/
XMLError SaveFile( const char* filename, bool compact = false );
@@ -1653,7 +1653,7 @@
Save the XML file to disk. You are responsible
for providing and closing the FILE*.
- Returns XML_NO_ERROR (0) on success, or
+ Returns XML_SUCCESS (0) on success, or
an errorID.
*/
XMLError SaveFile( FILE* fp, bool compact = false );