1
Fork 0
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:
Timothy Flynn 2022-11-29 08:52:09 -05:00 committed by Linus Groh
parent 5336f23c7e
commit 6d3f68cc11
3 changed files with 13 additions and 12 deletions

View file

@ -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);
}