Minor changes to the Dictionary class

This commit is contained in:
anschrammh 2019-12-27 10:48:47 +01:00
parent 9148e61911
commit 7b80f7a95c

View File

@ -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()