diff options
author | Lars Knoll <[email protected]> | 2013-11-26 10:46:44 +0100 |
---|---|---|
committer | The Qt Project <[email protected]> | 2013-12-04 09:45:38 +0100 |
commit | 8831e02402fa0b2a3cdfdc017bcbb10bf000995e (patch) | |
tree | bc926f06d9df570f02b401ea95ea1a0dd33b1d48 /src/qml/jsruntime | |
parent | 9f4597dd7ae333f209c862e40c68a8f84255a63a (diff) |
Fixup the implementation mess for QJSValue(QString)
Until now we were using a QV4::String without engine to
represent this case. But this leads to lots of quirks, where
we ended up trying to access the engine (or the internalclass/vtable)
of this string anyway.
Now just represent it by using an QString in QJSValuePrivate, and use
an empty value to represent it. This adds a little bit of code to
QJSValue and QJSEngine, but is more stable and maintainable in the
longer term.
Change-Id: I3358165ee64e788274225743a95dfb13346225cc
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime')
0 files changed, 0 insertions, 0 deletions