mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:17:35 +00:00
Userland: Use Core::Timer::create_foo() factory functions where possible
This commit is contained in:
parent
6edc0cf5ab
commit
e181b1cb82
12 changed files with 37 additions and 51 deletions
|
@ -22,11 +22,9 @@ namespace PixelPaint {
|
|||
|
||||
SprayTool::SprayTool()
|
||||
{
|
||||
m_timer = Core::Timer::construct();
|
||||
m_timer->on_timeout = [&]() {
|
||||
m_timer = Core::Timer::create_repeating(200, [&]() {
|
||||
paint_it();
|
||||
};
|
||||
m_timer->set_interval(200);
|
||||
}).release_value_but_fixme_should_propagate_errors();
|
||||
}
|
||||
|
||||
static double nrand()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue