From faa27b075484f97bc6a233f7476be06565efe2b9 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sat, 5 Dec 2020 20:11:02 -0800 Subject: [PATCH] Qt: Fix some sign warnings --- src/platform/qt/BattleChipModel.cpp | 2 +- src/platform/qt/InputController.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/qt/BattleChipModel.cpp b/src/platform/qt/BattleChipModel.cpp index 1e6452e66..2acbd9b7f 100644 --- a/src/platform/qt/BattleChipModel.cpp +++ b/src/platform/qt/BattleChipModel.cpp @@ -51,7 +51,7 @@ bool BattleChipModel::removeRows(int row, int count, const QModelIndex& parent) return false; } beginRemoveRows(QModelIndex(), row, row + count - 1); - for (size_t i = 0; i < count; ++i) { + for (int i = 0; i < count; ++i) { m_deck.removeAt(row); } endRemoveRows(); diff --git a/src/platform/qt/InputController.h b/src/platform/qt/InputController.h index 6d013af88..50729952b 100644 --- a/src/platform/qt/InputController.h +++ b/src/platform/qt/InputController.h @@ -153,7 +153,7 @@ private: QImage resizedImage; bool outOfDate; QMutex mutex; - unsigned w, h; + int w, h; } m_image; #ifdef BUILD_QT_MULTIMEDIA