mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 16:55:09 +00:00
LibCore: Remove CTimer::create() overloads in favor of construct()
This commit is contained in:
parent
9e00651e14
commit
f4b51a63ec
13 changed files with 14 additions and 24 deletions
|
@ -32,8 +32,8 @@ WallpaperMode mode_to_enum(const String& name)
|
|||
|
||||
WSCompositor::WSCompositor()
|
||||
{
|
||||
m_compose_timer = CTimer::create(this);
|
||||
m_immediate_compose_timer = CTimer::create(this);
|
||||
m_compose_timer = CTimer::construct(this);
|
||||
m_immediate_compose_timer = CTimer::construct(this);
|
||||
|
||||
m_screen_can_set_buffer = WSScreen::the().can_set_buffer();
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ WSMenuManager::WSMenuManager()
|
|||
{
|
||||
m_username = getlogin();
|
||||
|
||||
m_timer = CTimer::create(300, [this] {
|
||||
m_timer = CTimer::construct(300, [this] {
|
||||
static time_t last_update_time;
|
||||
time_t now = time(nullptr);
|
||||
if (now != last_update_time || m_cpu_monitor.is_dirty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue