From bb1f574b69f9084a3718e4deb4a07acc72958b43 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 21 Mar 2023 10:26:33 +0100 Subject: [PATCH] Introduce factory method Timer::Create() --- lib/base/timer.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/base/timer.hpp b/lib/base/timer.hpp index 2088a6660..d71eda554 100644 --- a/lib/base/timer.hpp +++ b/lib/base/timer.hpp @@ -21,6 +21,12 @@ class Timer final : public Object public: DECLARE_PTR_TYPEDEFS(Timer); + static inline + Ptr Create() + { + return new Timer(); + } + ~Timer() override; static void Initialize();