From 01f26346cb43d6c10e15d279457804332d70c923 Mon Sep 17 00:00:00 2001 From: Vittorio Romeo Date: Mon, 15 Jul 2024 16:20:10 +0200 Subject: [PATCH] Fix typo in `WindowBase::setMaximumSize` --- src/SFML/Window/WindowBase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SFML/Window/WindowBase.cpp b/src/SFML/Window/WindowBase.cpp index 3f84478d8..3a887060f 100644 --- a/src/SFML/Window/WindowBase.cpp +++ b/src/SFML/Window/WindowBase.cpp @@ -236,13 +236,13 @@ void WindowBase::setMaximumSize(const std::optional& maximumSize) { if (m_impl) { - [[maybe_unused]] const auto validateMaxiumSize = [this, maximumSize] + [[maybe_unused]] const auto validateMaximumSize = [this, maximumSize] { if (!maximumSize.has_value() || !m_impl->getMinimumSize().has_value()) return true; return maximumSize->x >= m_impl->getMinimumSize()->x && maximumSize->y >= m_impl->getMinimumSize()->y; }; - assert(validateMaxiumSize() && "Maximum size cannot be smaller than the minimum size along either axis"); + assert(validateMaximumSize() && "Maximum size cannot be smaller than the minimum size along either axis"); m_impl->setMaximumSize(maximumSize); setSize(getSize());