1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:37:46 +00:00

Spreadsheet: Add CellChange constructor for changes in type metadata

Allows the creation of CellChanges where the change is in the type
metadata instead of in data.
This commit is contained in:
huttongrabiel 2023-04-02 16:26:54 -07:00 committed by Sam Atkins
parent cd33f271b1
commit 40725c7c8c
4 changed files with 18 additions and 0 deletions

View file

@ -62,6 +62,11 @@ void Cell::set_type(StringView name)
VERIFY_NOT_REACHED();
}
void Cell::set_type_metadata(CellTypeMetadata const& metadata)
{
m_type_metadata = metadata;
}
void Cell::set_type_metadata(CellTypeMetadata&& metadata)
{
m_type_metadata = move(metadata);