Qt: Fix Wunused-but-set-variable warnings.

This commit is contained in:
lightningterror 2022-08-07 03:00:22 +02:00
parent 7a5f63e0f5
commit 60e6e1f242
2 changed files with 0 additions and 4 deletions

View File

@ -639,13 +639,10 @@ void MainWindow::setStyleFromSettings()
// Alternative dark theme. // Alternative dark theme.
qApp->setStyle(QStyleFactory::create("Fusion")); qApp->setStyle(QStyleFactory::create("Fusion"));
const QColor lighterGray(75, 75, 75);
const QColor gray(128, 128, 128); const QColor gray(128, 128, 128);
const QColor black(25, 25, 25);
const QColor slate(18, 18, 18); const QColor slate(18, 18, 18);
const QColor rubyish(172, 21, 31); const QColor rubyish(172, 21, 31);
QPalette darkPalette; QPalette darkPalette;
darkPalette.setColor(QPalette::Window, slate); darkPalette.setColor(QPalette::Window, slate);
darkPalette.setColor(QPalette::WindowText, Qt::white); darkPalette.setColor(QPalette::WindowText, Qt::white);

View File

@ -406,7 +406,6 @@ void ControllerSettingsDialog::updateListDescription(u32 global_slot, Controller
const QVariant data(item->data(Qt::UserRole)); const QVariant data(item->data(Qt::UserRole));
if (data.type() == QVariant::UInt && data.toUInt() == global_slot) if (data.type() == QVariant::UInt && data.toUInt() == global_slot)
{ {
const bool is_mtap_port = sioPadIsMultitapSlot(global_slot);
const auto [port, slot] = sioConvertPadToPortAndSlot(global_slot); const auto [port, slot] = sioConvertPadToPortAndSlot(global_slot);
const bool mtap_enabled = getBoolValue("Pad", (port == 0) ? "MultitapPort1" : "MultitapPort2", false); const bool mtap_enabled = getBoolValue("Pad", (port == 0) ? "MultitapPort1" : "MultitapPort2", false);