mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-27 12:41:57 +00:00
LibCore: Remove CTimer::create() overloads in favor of construct()
This commit is contained in:
parent
9e00651e14
commit
f4b51a63ec
Notes:
sideshowbarker
2024-07-19 12:01:31 +09:00
Author: https://github.com/awesomekling
Commit: f4b51a63ec
13 changed files with 14 additions and 24 deletions
|
@ -7,16 +7,6 @@
|
|||
class CTimer final : public CObject {
|
||||
C_OBJECT(CTimer)
|
||||
public:
|
||||
static ObjectPtr<CTimer> create(CObject* parent = nullptr)
|
||||
{
|
||||
return new CTimer(parent);
|
||||
}
|
||||
|
||||
static ObjectPtr<CTimer> create(int interval, Function<void()>&& timeout_handler, CObject* parent = nullptr)
|
||||
{
|
||||
return new CTimer(interval, move(timeout_handler), parent);
|
||||
}
|
||||
|
||||
virtual ~CTimer() override;
|
||||
|
||||
void start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue