mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:57:45 +00:00
LibCore+Applications: Put timeout parameter first in debounce()
This matches the parameter order for Core::Timer's factory methods, stops clang-format freaking out so much, and just seems nicer to me. :^)
This commit is contained in:
parent
4c349165f2
commit
08edc872aa
5 changed files with 10 additions and 14 deletions
|
@ -11,7 +11,7 @@
|
|||
namespace Core {
|
||||
|
||||
template<typename TFunction>
|
||||
auto debounce(TFunction function, int timeout)
|
||||
auto debounce(int timeout, TFunction function)
|
||||
{
|
||||
RefPtr<Core::Timer> timer;
|
||||
return [=]<typename... T>(T... args) mutable {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue