diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-12-28 15:40:50 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-28 08:16:47 +0100 |
commit | b2f22587194c3c2e51a11eb97630ea08e3c2062c (patch) | |
tree | f950d9ec415a9429208b99362ab7a51a0f82c3e7 /tests/auto | |
parent | 36eb666391ec4d51ab1a9d6d1a4125bdcfd2bcbf (diff) |
Avoid repeatedly registering the same meta-type
Register the meta-type in initTestCase(), which is run once, rather than
in init(), which is run before every test function is run.
Change-Id: Ic62a2469da6a2a85254ffc7c4d893395202c50d8
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/corelib/animation/qanimationgroup/tst_qanimationgroup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/animation/qanimationgroup/tst_qanimationgroup.cpp b/tests/auto/corelib/animation/qanimationgroup/tst_qanimationgroup.cpp index d020fe9290..223998b000 100644 --- a/tests/auto/corelib/animation/qanimationgroup/tst_qanimationgroup.cpp +++ b/tests/auto/corelib/animation/qanimationgroup/tst_qanimationgroup.cpp @@ -51,7 +51,7 @@ class tst_QAnimationGroup : public QObject { Q_OBJECT public Q_SLOTS: - void init(); + void initTestCase(); private slots: void construction(); @@ -63,7 +63,7 @@ private slots: void loopWithoutStartValue(); }; -void tst_QAnimationGroup::init() +void tst_QAnimationGroup::initTestCase() { qRegisterMetaType<QAbstractAnimation::State>("QAbstractAnimation::State"); } |