mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17:35 +00:00
AK: Make SourceGenerator move constructible
This makes us able to return one from a function
This commit is contained in:
parent
6672c19c93
commit
14caecefb1
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,8 @@ public:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SourceGenerator(SourceGenerator&&) = default;
|
||||||
|
|
||||||
SourceGenerator fork() { return SourceGenerator { m_builder, m_mapping, m_opening, m_closing }; }
|
SourceGenerator fork() { return SourceGenerator { m_builder, m_mapping, m_opening, m_closing }; }
|
||||||
|
|
||||||
void set(StringView key, String value) { m_mapping.set(key, value); }
|
void set(StringView key, String value) { m_mapping.set(key, value); }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue