Initialize values in collection tests

This silences a compiler warning

Change-Id: I8d01b5d008ab4f90d5551fef522e2e3c3adb02ba
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
David Skoland 2020-10-27 10:22:22 +01:00
parent 913c0d56e5
commit 7d0faad43c

View File

@ -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;