mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-24 18:28:57 +00:00
LibCore: Add a constructor that sets the parent object
This commit is contained in:
parent
30295bd988
commit
dc318d3080
Notes:
sideshowbarker
2024-07-17 09:39:38 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: dc318d3080
Pull-request: https://github.com/SerenityOS/serenity/pull/16715
Issue: https://github.com/SerenityOS/serenity/issues/14945
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/BenWiederhake
1 changed files with 4 additions and 0 deletions
|
@ -63,6 +63,10 @@ public:
|
|||
|
||||
private:
|
||||
Promise() = default;
|
||||
Promise(Object* parent)
|
||||
: Object(parent)
|
||||
{
|
||||
}
|
||||
|
||||
Optional<ErrorOr<Result>> m_pending_or_error;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue