summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/other/modeltest/tst_modeltest.cpp4
-rw-r--r--tests/auto/widgets/kernel/qsizepolicy/tst_qsizepolicy.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/other/modeltest/tst_modeltest.cpp b/tests/auto/other/modeltest/tst_modeltest.cpp
index 33eb4115e6..7960ad16e0 100644
--- a/tests/auto/other/modeltest/tst_modeltest.cpp
+++ b/tests/auto/other/modeltest/tst_modeltest.cpp
@@ -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);
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));