diff options
author | Martijn Otto <martijn.otto@copernica.com> | 2015-05-07 13:10:13 +0200 |
---|---|---|
committer | Martijn Otto <martijn.otto@copernica.com> | 2015-05-07 13:10:13 +0200 |
commit | 7c2cd609dc7ca0391094b3f27d296f23bfcaaf10 (patch) | |
tree | 5a94c0a1f8353bc6d6903efc790f09ce2921a115 /include | |
parent | b554b4d7c604c12c7988d0ea17ca666e2097ab00 (diff) |
rawValue no longer tries to return a valid pointer when the Value object does not represent a string value
Diffstat (limited to 'include')
-rw-r--r-- | include/value.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/value.h b/include/value.h index 29b64af..97b1509 100644 --- a/include/value.h +++ b/include/value.h @@ -412,7 +412,9 @@ public: char *reserve(size_t size); /** - * Get access to the raw buffer for read operations. + * Get access to the raw buffer for read operations. Note that this + * only works for string variables - other variables return nullptr. + * * @return const char * */ const char *rawValue() const; @@ -688,6 +690,10 @@ public: /** * Cast to byte array + * + * Note that this only works for string values, other + * variables return a nullptr. + * * @return const char * */ operator const char * () const |