diff options
author | David Skoland <david.skoland@qt.io> | 2020-10-27 10:22:22 +0100 |
---|---|---|
committer | David Skoland <david.skoland@qt.io> | 2020-10-28 22:19:05 +0100 |
commit | 7d0faad43ce1a3a27b8a1f35e342bada96286d4c (patch) | |
tree | 0b8c7ac7a8276f4d9a5d86a23a2933c7b4db849a /tests/auto | |
parent | 913c0d56e5075a71a13fc9cba53f84306554a88a (diff) |
Initialize values in collection tests
This silences a compiler warning
Change-Id: I8d01b5d008ab4f90d5551fef522e2e3c3adb02ba
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/corelib/tools/collections/tst_collections.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/tools/collections/tst_collections.cpp b/tests/auto/corelib/tools/collections/tst_collections.cpp index f10ecca335..85c6f7e6e1 100644 --- a/tests/auto/corelib/tools/collections/tst_collections.cpp +++ b/tests/auto/corelib/tools/collections/tst_collections.cpp @@ -2361,7 +2361,7 @@ template <class Container> void testLinkedListLikeStlIterators() { Container fake; - typename Container::value_type t; + typename Container::value_type t = {}; fake << t; typename Container::iterator i1 = fake.begin(), i2 = i1 + 1; @@ -2394,7 +2394,7 @@ void testListLikeStlIterators() testLinkedListLikeStlIterators<Container>(); Container fake; - typename Container::value_type t; + typename Container::value_type t = {}; fake << t; typename Container::iterator i1 = fake.begin(), i2 = i1 + 1; |