Ouch! Be careful!
If you call PropertySet::setValue()
with false
then the overload that takes an XmlElement*
gets resolved instead of the one with the var
. Of course this is correct but difficult to spot until everything breaks!
/** Sets a named property.
@param keyName the name of the property to set. (This mustn't be an empty string)
@param value the new value to set it to
*/
void setValue (const String& keyName, const var& value);
/** Sets a named property to an XML element.
@param keyName the name of the property to set. (This mustn't be an empty string)
@param xml the new element to set it to. If this is a nullptr, the value will
be set to an empty string
@see getXmlValue
*/
void setValue (const String& keyName, const XmlElement* xml);