summaryrefslogtreecommitdiff
path: root/Servers
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-21 18:13:17 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-21 18:13:17 +0200
commitf4b51a63ec085db62ea2c122ee6ba93eeef62594 (patch)
tree8e71f811b463556b1216e8aed71f20092db3d81c /Servers
parent9e00651e1440263ff78aa29474229e5c18f06053 (diff)
downloadserenity-f4b51a63ec085db62ea2c122ee6ba93eeef62594.zip
LibCore: Remove CTimer::create() overloads in favor of construct()
Diffstat (limited to 'Servers')
-rw-r--r--Servers/WindowServer/WSCompositor.cpp4
-rw-r--r--Servers/WindowServer/WSMenuManager.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/Servers/WindowServer/WSCompositor.cpp b/Servers/WindowServer/WSCompositor.cpp
index 3e78f80e0d..31b59ad412 100644
--- a/Servers/WindowServer/WSCompositor.cpp
+++ b/Servers/WindowServer/WSCompositor.cpp
@@ -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();
diff --git a/Servers/WindowServer/WSMenuManager.cpp b/Servers/WindowServer/WSMenuManager.cpp
index cbdf2e84fc..a02362ccb2 100644
--- a/Servers/WindowServer/WSMenuManager.cpp
+++ b/Servers/WindowServer/WSMenuManager.cpp
@@ -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()) {