mirror of
https://github.com/SFML/SFML.git
synced 2025-01-18 15:25:12 +08:00
Clean-up linter silencers
This commit is contained in:
parent
258e0efa7a
commit
bbbeade054
@ -108,10 +108,6 @@ decltype(auto) Event::visit(Ts&&... visitors) const
|
||||
static_assert((isValidHandler<Ts> && ...),
|
||||
"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)...,
|
||||
[](const priv::DelayOverloadResolution&) { /* ignore */ }},
|
||||
m_data);
|
||||
|
Loading…
Reference in New Issue
Block a user