diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2013-03-08 11:47:51 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-11 19:49:25 +0100 |
commit | a5857ca37d0ad49b7b944b92d58d3e519b253c6c (patch) | |
tree | a44a3197b047e5fc1f9eee68f8e82157e8721493 /tests/auto/qstringlistmodel | |
parent | df2cc57a592e11b464ec21ea530dad33f6fbee3e (diff) |
Fix warnings in tests (CLANG).
- Statement has no effect
- Adding int to string
- Unspecified behavior when comparing character literals.
Change-Id: Ie9cb9a1036b5cf5c62890685c60dee4af1ce7148
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'tests/auto/qstringlistmodel')
-rw-r--r-- | tests/auto/qstringlistmodel/tst_qstringlistmodel.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/qstringlistmodel/tst_qstringlistmodel.cpp b/tests/auto/qstringlistmodel/tst_qstringlistmodel.cpp index b9c260f338..2ecf571f04 100644 --- a/tests/auto/qstringlistmodel/tst_qstringlistmodel.cpp +++ b/tests/auto/qstringlistmodel/tst_qstringlistmodel.cpp @@ -169,8 +169,7 @@ void tst_QStringListModel::rowsAboutToBeRemoved_rowsRemoved_data() QStringList strings3; strings3 << "One" << "Two" << "Three" << "Four" << "Five"; QStringList aboutto3; aboutto3 << "One" << "Two" << "Three" << "Four" << "Five"; - QStringList res3; res3 ; - QTest::newRow( "data3" ) << strings3 << 0 << 5 << aboutto3 << res3; + QTest::newRow( "data3" ) << strings3 << 0 << 5 << aboutto3 << QStringList(); /* Not sure if this is a valid test */ QStringList strings4; strings4 << "One" << "Two" << "Three" << "Four" << "Five"; |