mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibSQL: Store a NonnullRefPtr to the table definition in SQL::Row
Also return a direct reference to the table from its getter.
This commit is contained in:
parent
5336f23c7e
commit
6d3f68cc11
Notes:
sideshowbarker
2024-07-17 03:52:10 +09:00
Author: https://github.com/trflynn89
Commit: 6d3f68cc11
Pull-request: https://github.com/SerenityOS/serenity/pull/16239
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/linusg
3 changed files with 13 additions and 12 deletions
|
@ -9,9 +9,9 @@
|
|||
|
||||
namespace SQL {
|
||||
|
||||
Row::Row(RefPtr<TableDef> table, u32 pointer)
|
||||
Row::Row(NonnullRefPtr<TableDef> table, u32 pointer)
|
||||
: Tuple(table->to_tuple_descriptor())
|
||||
, m_table(table)
|
||||
, m_table(move(table))
|
||||
{
|
||||
set_pointer(pointer);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue