diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2016-08-04 14:16:05 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2016-08-05 07:15:28 +0000 |
commit | 48deab9b69afc8d613e2b22dacd138be7c8c51a8 (patch) | |
tree | 9ad1e9c882024110dae744f21ba1d6f22adb52de /src/qml/jsruntime/qv4qobjectwrapper.cpp | |
parent | fe663bf863ffd6085c3022db7e9a923688befeb6 (diff) |
Fix QML engine in MSVC debug builds
In debug builds MSVC does not do return value optimization and therefore
would call the destructor and thus callback on the temporary, a rather
unwanted side-effect. Let's use a different approach that is guaranteed
to avoid temporaries.
Change-Id: I534258754331495db38cd7960b88bf4bec38ddba
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4qobjectwrapper.cpp')
0 files changed, 0 insertions, 0 deletions