diff options
author | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-11-03 14:49:14 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-11-14 21:46:09 +0000 |
commit | f0a412020f493f01205c302cf48927dd5e3b80b6 (patch) | |
tree | bbbc038b07268f86b9037d97ed3c00678c64108f /src/qml/jsruntime/qv4value_p.h | |
parent | 353164263c55825a0ec72d30128c50560c626334 (diff) |
Allow for encoding a nullptr Heap::Base as a Value
The encoding will end up being the same as undefined.
Change-Id: I2427e96f98d410c291234615969791de6bf4f833
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4value_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4value_p.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4value_p.h b/src/qml/jsruntime/qv4value_p.h index 944abbf4be..0608252082 100644 --- a/src/qml/jsruntime/qv4value_p.h +++ b/src/qml/jsruntime/qv4value_p.h @@ -766,7 +766,6 @@ struct Encode { } explicit Encode(Heap::Base *o) { - Q_ASSERT(o); val = Value::fromHeapObject(o).asReturnedValue(); } |