Fix valgrind errors in tst_qqmlecmascript::revision
authorSimon Hausmann <simon.hausmann@digia.com>
Fri, 1 Nov 2013 13:26:18 +0000 (14:26 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 1 Nov 2013 15:05:08 +0000 (16:05 +0100)
commit13ebff257cb56a32d688456634ea0ce6164232ba
tree0d66c0df48114b588f6d95271e31081240265c2d
parente1d2cafc060facfc3c211a3d90973451d5f2eb13
Fix valgrind errors in tst_qqmlecmascript::revision

The QML code looks like this:

    MyRevisionedClass {
        prop1: prop2
    }

and MyRevisionedClass is C++ based. We need to return an initialized value when
reading prop2.

Change-Id: I33792c04aa1ba0d8e38c1351b8fb4de7abbe4891
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
tests/auto/qml/qqmlecmascript/testtypes.h