mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibSQL+SQLServer: Remove Core::EventReceiver parent from SQL::Database
This relationship was only used to provide factory methods for the database.
This commit is contained in:
parent
4a04438e43
commit
1151ba333a
Notes:
sideshowbarker
2024-07-17 07:35:03 +09:00
Author: https://github.com/trflynn89
Commit: 1151ba333a
Pull-request: https://github.com/SerenityOS/serenity/pull/20411
Reviewed-by: https://github.com/gmta ✅
5 changed files with 72 additions and 68 deletions
|
@ -15,8 +15,14 @@
|
|||
|
||||
namespace SQL {
|
||||
|
||||
Database::Database(DeprecatedString name)
|
||||
: m_heap(Heap::create(move(name)).release_value_but_fixme_should_propagate_errors())
|
||||
ErrorOr<NonnullRefPtr<Database>> Database::create(DeprecatedString name)
|
||||
{
|
||||
auto heap = TRY(Heap::create(move(name)));
|
||||
return adopt_nonnull_ref_or_enomem(new (nothrow) Database(move(heap)));
|
||||
}
|
||||
|
||||
Database::Database(NonnullRefPtr<Heap> heap)
|
||||
: m_heap(move(heap))
|
||||
, m_serializer(m_heap)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue