From 7b80f7a95c00f83555ca82d41b1c35aa60ec5bfe Mon Sep 17 00:00:00 2001 From: anschrammh Date: Fri, 27 Dec 2019 10:48:47 +0100 Subject: [PATCH] Minor changes to the Dictionary class --- src/app/Dictionary.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/Dictionary.h b/src/app/Dictionary.h index 42b69d7..45436e5 100644 --- a/src/app/Dictionary.h +++ b/src/app/Dictionary.h @@ -242,11 +242,11 @@ public: _next = NULL; } - const char *stringValue() const {return _value == NULL ? "" : _value->toString();} + const char *stringValue() const {return _value == NULL ? NULL : _value->toString();} const char *getParameter(const unsigned int index) { unsigned int position(0); - if(isListEmpty(_head->_next))return ""; + if(isListEmpty(_head->_next))return NULL; Dictionary *cursor = _head->_next; @@ -257,7 +257,7 @@ public: cursor = cursor->_next; } - return ""; + return NULL; } protected: Dictionary(const char *parameter, T *value) : Dictionary()