Skip to content

Commit

Permalink
Qt: Fix more compiler warnings.
Browse files Browse the repository at this point in the history
-Wsign-compare, -Wunused-variable.
  • Loading branch information
lightningterror authored and stenzek committed Jan 27, 2024
1 parent 77a6525 commit 2b90451
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pcsx2-qt/Debugger/DebuggerSettingsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,15 @@ void DebuggerSettingsManager::saveGameSettings(QAbstractTableModel* abstractTabl
QJsonObject loadedSettings = loadGameSettingsJSON();
QJsonArray rowsArray;
QStringList keys;
for (u32 col = 0; col < abstractTableModel->columnCount(); ++col)
for (int col = 0; col < abstractTableModel->columnCount(); ++col)
{
keys << abstractTableModel->headerData(col, Qt::Horizontal, Qt::UserRole).toString();
}

for (u32 row = 0; row < abstractTableModel->rowCount(); row++)
for (int row = 0; row < abstractTableModel->rowCount(); row++)
{
QJsonObject rowObject;
for (u32 col = 0; col < abstractTableModel->columnCount(); col++)
for (int col = 0; col < abstractTableModel->columnCount(); col++)
{
const QModelIndex index = abstractTableModel->index(row, col);
const QString data = abstractTableModel->data(index, role).toString();
Expand Down
2 changes: 0 additions & 2 deletions pcsx2-qt/Settings/DEV9SettingsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -724,8 +724,6 @@ void DEV9SettingsWidget::onHddSizeAccessorSpin()

void DEV9SettingsWidget::onHddLBA48Changed(int state)
{
const bool enabled = state;

m_ui.hddSizeSlider->setMaximum(state ? 2000 : 120);
m_ui.hddSizeSpinBox->setMaximum(state ? 2000 : 120);
m_ui.hddSizeMaxLabel->setText(state ? tr("2000") : tr("120"));
Expand Down

0 comments on commit 2b90451

Please sign in to comment.