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>
This commit is contained in:
Friedemann Kleint 2012-08-27 09:27:04 +02:00 committed by Qt by Nokia
parent 62b0f41ae0
commit 37320e36cd
2 changed files with 3 additions and 3 deletions

View File

@ -258,8 +258,8 @@ public slots:
void checkPersistent()
{
for (int row = 0; row < m_persistentProxyIndexes.size(); ++row) {
QModelIndex updatedProxy = m_persistentProxyIndexes.at(row);
QModelIndex updatedSource = m_persistentSourceIndexes.at(row);
m_persistentProxyIndexes.at(row);
m_persistentSourceIndexes.at(row);
}
for (int row = 0; row < m_persistentProxyIndexes.size(); ++row) {
QModelIndex updatedProxy = m_persistentProxyIndexes.at(row);

View File

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