mirror of
https://github.com/SFML/SFML.git
synced 2025-01-18 23:35:11 +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> && ...),
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user