From dc318d30800e5b1741d5a1fdd3569321c1ad3603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Thu, 29 Dec 2022 14:50:05 +0100 Subject: [PATCH] LibCore: Add a constructor that sets the parent object --- Userland/Libraries/LibCore/Promise.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Userland/Libraries/LibCore/Promise.h b/Userland/Libraries/LibCore/Promise.h index 90dc01eebaa..9517f220749 100644 --- a/Userland/Libraries/LibCore/Promise.h +++ b/Userland/Libraries/LibCore/Promise.h @@ -63,6 +63,10 @@ public: private: Promise() = default; + Promise(Object* parent) + : Object(parent) + { + } Optional> m_pending_or_error; };