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:
parent
913c0d56e5
commit
7d0faad43c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user