diff options
author | Tim Blechmann <tim@klingt.org> | 2024-04-04 13:37:01 +0800 |
---|---|---|
committer | Tim Blechmann <tim@klingt.org> | 2024-04-23 15:09:05 +0800 |
commit | 867611dcf5bb41090316facca6aab21be9fe49c9 (patch) | |
tree | 8e4c861561147f84f6818e5fd8e67763c5b549cd | |
parent | bc5e52ef578a79abdfc9e7f1ac4ce0e407b716a8 (diff) |
tests: silence -Wsign-compare warnings
Pick-to: 6.5 6.7
Change-Id: Ia3671bb17b2d1bd818caa0ed8890489dd19e6e92
Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
-rw-r--r-- | tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp | 2 | ||||
-rw-r--r-- | tests/auto/integration/shared/mediafileselector.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp b/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp index 3867ba577..d6466e7e0 100644 --- a/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp +++ b/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp @@ -55,7 +55,7 @@ It findSimilarColor(It it, It end, QRgb color) } template <typename Colors> -size_t findSimilarColorIndex(const Colors &colors, QRgb color) +auto findSimilarColorIndex(const Colors &colors, QRgb color) { return std::distance(std::begin(colors), findSimilarColor(std::begin(colors), std::end(colors), color)); diff --git a/tests/auto/integration/shared/mediafileselector.h b/tests/auto/integration/shared/mediafileselector.h index ce39a80f1..e36677f34 100644 --- a/tests/auto/integration/shared/mediafileselector.h +++ b/tests/auto/integration/shared/mediafileselector.h @@ -28,7 +28,7 @@ using MaybeUrl = QMaybe<QUrl, QString>; class MediaFileSelector { public: - quint32 failedSelectionsCount() const { return m_failedSelectionsCount; } + int failedSelectionsCount() const { return m_failedSelectionsCount; } QString dumpErrors() const { @@ -159,7 +159,7 @@ private: std::unordered_map<QString, std::unique_ptr<QTemporaryFile>> m_nativeFiles; #endif std::unordered_map<QString, QString> m_mediaToErrors; - quint32 m_failedSelectionsCount = 0; + int m_failedSelectionsCount = 0; }; QT_END_NAMESPACE |