From 9afd1d0ceb225cafb1125ac1cb4d737f06661f15 Mon Sep 17 00:00:00 2001 From: Sarat Addepalli Date: Tue, 19 May 2015 12:56:27 +0530 Subject: [PATCH] Clarify meaning of 'empty' When `XMLDocument::Value()` is called, we intend to return NULL (`( const char* )0`). State that explicitly in the documentation, so as to disambiguate between "empty string" (`""`) and NULL. --- tinyxml2.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tinyxml2.h b/tinyxml2.h index d0620cc..70a9851 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -122,9 +122,9 @@ inline int TIXML_SNPRINTF( char* buffer, size_t size, const char* format, ... ) /* Versioning, past 1.0.14: http://semver.org/ */ -static const int TIXML2_MAJOR_VERSION = 3; -static const int TIXML2_MINOR_VERSION = 0; -static const int TIXML2_PATCH_VERSION = 0; +static const int TIXML2_MAJOR_VERSION = 3; +static const int TIXML2_MINOR_VERSION = 0; +static const int TIXML2_PATCH_VERSION = 0; namespace tinyxml2 { @@ -708,7 +708,7 @@ public: /** The meaning of 'value' changes for the specific type. @verbatim - Document: empty + Document: empty (NULL is returned, not an empty string) Element: name of the element Comment: the comment text Unknown: the tag contents