Merge pull request #13861 from Tilka/unused_lambda_captures

DolphinQt: fix two -Wunused-lambda-capture warnings
This commit is contained in:
Tilka 2025-08-10 20:26:32 +01:00 committed by GitHub
commit 72ef27c157
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View file

@ -132,8 +132,7 @@ void AdvancedPane::CreateLayout()
};
cpu_text();
connect(m_cpu_clock_override_slider, &QSlider::valueChanged, this,
[this, cpu_text]() { cpu_text(); });
connect(m_cpu_clock_override_slider, &QSlider::valueChanged, this, cpu_text);
m_cpu_clock_override_checkbox->SetDescription(
tr("Adjusts the emulated CPU's clock rate.<br><br>"
@ -177,8 +176,7 @@ void AdvancedPane::CreateLayout()
};
vi_text();
connect(m_vi_rate_override_slider, &QSlider::valueChanged, this,
[this, vi_text]() { vi_text(); });
connect(m_vi_rate_override_slider, &QSlider::valueChanged, this, vi_text);
m_vi_rate_override_checkbox->SetDescription(
tr("Adjusts the VBI frequency. Also adjusts the emulated CPU's "

View file

@ -397,7 +397,7 @@ static void SubtractBlend(u8* srcClr, u8* dstClr)
static void Dither(u16 x, u16 y, u8* color)
{
// No blending for RGB8 mode
// No dithering for RGB8 mode
if (!bpmem.blendmode.dither || bpmem.zcontrol.pixel_format != PixelFormat::RGBA6_Z24)
return;