diff options
author | John Fultz <jfultz@wolfram.com> | 2023-07-19 18:07:39 -0500 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2023-07-19 22:38:25 -0500 |
commit | d302abb430f5cb75e7373197c91e269fdbaf2e61 (patch) | |
tree | 0f52f3cfa5feff989603d81c1c8b4af147cf08cb /quacker/history.cpp | |
parent | 490072ac8b3de65f3ad6f00d9d6de9d64b049823 (diff) |
Fix integer size compiler warnings.
Diffstat (limited to 'quacker/history.cpp')
-rw-r--r-- | quacker/history.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; |