diff --git a/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp b/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp index c60c732e37..9ad3db8ae0 100644 --- a/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp +++ b/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp @@ -913,7 +913,7 @@ CalibrationWidget::CalibrationWidget(ControllerEmu::ReshapableInput& input, m_informative_timer = new QTimer(this); connect(m_informative_timer, &QTimer::timeout, this, [this] { // If the user has started moving we'll assume they know what they are doing. - if (*std::max_element(m_calibration_data.begin(), m_calibration_data.end()) > 0.5) + if (*std::ranges::max_element(m_calibration_data) > 0.5) return; ModalMessageBox::information( diff --git a/Source/Core/DolphinQt/ToolBar.cpp b/Source/Core/DolphinQt/ToolBar.cpp index 9649af6b00..9c8350f9f8 100644 --- a/Source/Core/DolphinQt/ToolBar.cpp +++ b/Source/Core/DolphinQt/ToolBar.cpp @@ -146,7 +146,7 @@ void ToolBar::MakeActions() std::ranges::transform(items, std::back_inserter(widths), [](QWidget* item) { return item->sizeHint().width(); }); - const int min_width = *std::max_element(widths.begin(), widths.end()) * 0.85; + const int min_width = *std::ranges::max_element(widths) * 0.85; for (QWidget* widget : items) widget->setMinimumWidth(min_width); }