diff --git a/tests/auto/gui/text/qglyphrun/tst_qglyphrun.cpp b/tests/auto/gui/text/qglyphrun/tst_qglyphrun.cpp index 9660d829b8..9bc9391989 100644 --- a/tests/auto/gui/text/qglyphrun/tst_qglyphrun.cpp +++ b/tests/auto/gui/text/qglyphrun/tst_qglyphrun.cpp @@ -967,7 +967,7 @@ void tst_QGlyphRun::objectReplacementCharacter() QList glyphRuns = layout.glyphRuns(); QCOMPARE(glyphRuns.size(), 1); QCOMPARE(glyphRuns.first().glyphIndexes().size(), 1); - QCOMPARE(glyphRuns.first().glyphIndexes().first(), 5); + QCOMPARE(glyphRuns.first().glyphIndexes().first(), uint(5)); } #endif // QT_NO_RAWFONT diff --git a/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp b/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp index da70a72f1a..2de6b87fb5 100644 --- a/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp +++ b/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp @@ -8117,7 +8117,7 @@ class Qtbug25280Server : public MiniHttpServer public: Qtbug25280Server(QByteArray qba) : MiniHttpServer(qba, false) {} QSet receivedSockets; - virtual void reply() + void reply() override { // Save sockets in a list receivedSockets.insert((QTcpSocket*)sender());