Test that doubles in JsonValue are copied

This commit is contained in:
Benoit Blanchon
2014-09-28 21:22:20 +02:00
parent 42ce5ab31f
commit d549070fd3
2 changed files with 16 additions and 2 deletions

View File

@ -61,10 +61,16 @@ void JsonValue::operator=(JsonValue const& value)
_node->content.asInteger = value._node->content.asInteger;
break;
case JSON_DOUBLE_0_DECIMALS:
case JSON_OBJECT:
case JSON_ARRAY:
case JSON_PROXY:
setAsProxyTo(value._node);
default:
*_node = *value._node;
break;
}
}