From d302abb430f5cb75e7373197c91e269fdbaf2e61 Mon Sep 17 00:00:00 2001 From: John Fultz Date: Wed, 19 Jul 2023 18:07:39 -0500 Subject: Fix integer size compiler warnings. --- quacker/history.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'quacker/history.cpp') diff --git a/quacker/history.cpp b/quacker/history.cpp index c391d61..917ae54 100644 --- a/quacker/history.cpp +++ b/quacker/history.cpp @@ -56,8 +56,8 @@ void History::historyChanged(const Quackle::History &history) if (gameOver) rowLabels.push_back(tr("Final")); - m_tableWidget->setRowCount(rowLabels.size()); - m_tableWidget->setColumnCount((int)players.size()); + m_tableWidget->setRowCount(int(rowLabels.size())); + m_tableWidget->setColumnCount(int(players.size())); Quackle::PlayerList currentScores(lastPosition.endgameAdjustedScores()); @@ -92,7 +92,7 @@ void History::historyChanged(const Quackle::History &history) QString scoreString(QString::number((*currentScoresIt).score())); QTableWidgetItem *item = createPlainItem(scoreString); - m_tableWidget->setItem(rowLabels.size() - 1, playerCountFromZero, item); + m_tableWidget->setItem(int(rowLabels.size()) - 1, playerCountFromZero, item); if (history.currentPosition().gameOver()) currentItem = item; -- cgit v1.2.3