1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:27: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:
Sam Atkins 2023-06-14 14:54:46 +01:00 committed by Andreas Kling
parent 4c349165f2
commit 08edc872aa
5 changed files with 10 additions and 14 deletions

View file

@ -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 {