diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-23 10:57:42 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-23 11:10:52 +0100 |
commit | 3d20da9ee451460b6e233f5efdf5a13e11525f97 (patch) | |
tree | 524b72d0874304c68036dbbc0514b632a4a08c59 /MenuApplets/Clock | |
parent | 7ec758773cdd85755d91f52614f361e7e750c7e9 (diff) | |
download | serenity-3d20da9ee451460b6e233f5efdf5a13e11525f97.zip |
Userspace: Use Core::Object::add() when building interfaces
Diffstat (limited to 'MenuApplets/Clock')
-rw-r--r-- | MenuApplets/Clock/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MenuApplets/Clock/main.cpp b/MenuApplets/Clock/main.cpp index 1cb22e85db..3b926974f7 100644 --- a/MenuApplets/Clock/main.cpp +++ b/MenuApplets/Clock/main.cpp @@ -42,7 +42,7 @@ public: { m_time_width = Gfx::Font::default_bold_font().width("2222-22-22 22:22:22"); - m_timer = Core::Timer::construct(1000, [this] { + m_timer = add<Core::Timer>(1000, [this] { static time_t last_update_time; time_t now = time(nullptr); if (now != last_update_time) { |