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:
parent
cd33f271b1
commit
40725c7c8c
4 changed files with 18 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue