Clean-up linter silencers

This commit is contained in:
Pixel-Tony 2025-01-15 23:25:35 +01:00
parent 258e0efa7a
commit bbbeade054

View File

@ -108,10 +108,6 @@ decltype(auto) Event::visit(Ts&&... visitors) const
static_assert((isValidHandler<Ts> && ...), static_assert((isValidHandler<Ts> && ...),
"All event handlers must accept a single parameter, either a const reference or a value"); "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<Ts>(visitors)..., return std::visit(priv::OverloadSet{std::forward<Ts>(visitors)...,
[](const priv::DelayOverloadResolution&) { /* ignore */ }}, [](const priv::DelayOverloadResolution&) { /* ignore */ }},
m_data); m_data);