From 2ed4e5d37dabec3859c2afc2037eeb7baf183789 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Tue, 27 Dec 2022 13:51:19 +0200 Subject: [PATCH] Fix two compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Comparing singed/usigned ints. Use override keyword. Change-Id: I03d2c4359e0600360ebcfece593a3b125e5c9c53 Reviewed-by: Thiago Macieira Reviewed-by: MÃ¥rten Nordheim --- tests/auto/gui/text/qglyphrun/tst_qglyphrun.cpp | 2 +- tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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());