diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-08-27 09:27:04 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-28 17:07:15 +0200 |
commit | 37320e36cd967a5823dc43fb87ce4342963e4ade (patch) | |
tree | 48291009f428dc681cb52562dc1e8caea05aedda /tests/auto/widgets/kernel/qsizepolicy/tst_qsizepolicy.cpp | |
parent | 62b0f41ae0c2971db5d6e53972d746b0a865a736 (diff) |
Fix some warnings in tests.
- Unused variables
- Signed/Unsigned comparisons.
Change-Id: I0f4cc92a8366ad501d703d19c3358ac24db47270
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
Diffstat (limited to 'tests/auto/widgets/kernel/qsizepolicy/tst_qsizepolicy.cpp')
-rw-r--r-- | tests/auto/widgets/kernel/qsizepolicy/tst_qsizepolicy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/widgets/kernel/qsizepolicy/tst_qsizepolicy.cpp b/tests/auto/widgets/kernel/qsizepolicy/tst_qsizepolicy.cpp index 7108c9decf..2999b007d5 100644 --- a/tests/auto/widgets/kernel/qsizepolicy/tst_qsizepolicy.cpp +++ b/tests/auto/widgets/kernel/qsizepolicy/tst_qsizepolicy.cpp @@ -96,7 +96,7 @@ void tst_QSizePolicy::getSetCheck() QSizePolicy::ToolButton }; -#define ITEMCOUNT(arr) sizeof(arr)/sizeof(arr[0]) +#define ITEMCOUNT(arr) int(sizeof(arr)/sizeof(arr[0])) QSizePolicy sp, oldsp; #ifdef GENERATE_BASELINE QFile out(QString::fromAscii("qsizepolicy-Qt%1%2.txt").arg((QT_VERSION >> 16) & 0xff).arg((QT_VERSION) >> 8 & 0xff)); |