From e883bbc57a18ade43e812e51a522258b0293ce63 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 12 Dec 2023 17:07:34 -0500 Subject: [PATCH] ConfigFloatSlider: Resolve -Wshadow warning Fairly straightforward variable shadowing. --- .../DolphinQt/Config/ConfigControls/ConfigFloatSlider.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/Config/ConfigControls/ConfigFloatSlider.cpp b/Source/Core/DolphinQt/Config/ConfigControls/ConfigFloatSlider.cpp index 5d12649be4..3f7bed01c8 100644 --- a/Source/Core/DolphinQt/Config/ConfigControls/ConfigFloatSlider.cpp +++ b/Source/Core/DolphinQt/Config/ConfigControls/ConfigFloatSlider.cpp @@ -31,8 +31,8 @@ ConfigFloatSlider::ConfigFloatSlider(float minimum, float maximum, setFont(bf); const QSignalBlocker blocker(this); - const int current_value = std::round((Config::Get(m_setting) - m_minimum) / m_step); - setValue(current_value); + const int value = std::round((Config::Get(m_setting) - m_minimum) / m_step); + setValue(value); }); }