diff --git a/include/SFML/Window/Event.inl b/include/SFML/Window/Event.inl index 2413f5879..124edfa12 100644 --- a/include/SFML/Window/Event.inl +++ b/include/SFML/Window/Event.inl @@ -108,10 +108,6 @@ decltype(auto) Event::visit(Ts&&... visitors) const static_assert((isValidHandler && ...), "All event handlers must accept a single parameter, either a const reference or a value"); - // Disable misc-const-correctness for this line since clang-tidy - // complains about it even though the code would become uncompilable - - // NOLINTNEXTLINE(misc-const-correctness) return std::visit(priv::OverloadSet{std::forward(visitors)..., [](const priv::DelayOverloadResolution&) { /* ignore */ }}, m_data);