mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +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
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