diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2010-08-24 08:57:42 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-08-24 09:02:15 (GMT) |
commit | 337f2562c5b3b5dc99f62b406f13021e502791e7 (patch) | |
tree | 7fe53260c21bef31f8fa379c145336bdb4ef8fc7 /tests/auto | |
parent | b18b47ac904254504a2e9faadc6f9ea0a28bf509 (diff) | |
download | Qt-337f2562c5b3b5dc99f62b406f13021e502791e7.zip Qt-337f2562c5b3b5dc99f62b406f13021e502791e7.tar.gz Qt-337f2562c5b3b5dc99f62b406f13021e502791e7.tar.bz2 |
Fix tst_Collections::QTBUG13079_collectionInsideCollection
the 'next' was not initialized
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/collections/tst_collections.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/collections/tst_collections.cpp b/tests/auto/collections/tst_collections.cpp index 2dc41aa..f81535e 100644 --- a/tests/auto/collections/tst_collections.cpp +++ b/tests/auto/collections/tst_collections.cpp @@ -3659,9 +3659,9 @@ struct QTBUG13079_NodePtr : QSharedData { QTBUG13079_NodePtr *next; QString s; + QTBUG13079_NodePtr() : next(0) {} ~QTBUG13079_NodePtr() { - child.data(); //play with memory - next = 0; + next = child.data(); //play with memory } }; template<template<class> class C> void QTBUG13079_collectionInsidePtrImpl() |