浏览代码

AK: Make SourceGenerator move constructible

This makes us able to return one from a function
Hendiadyoin1 3 年之前
父节点
当前提交
14caecefb1
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      AK/SourceGenerator.h

+ 2 - 0
AK/SourceGenerator.h

@@ -33,6 +33,8 @@ public:
     {
     }
 
+    SourceGenerator(SourceGenerator&&) = default;
+
     SourceGenerator fork() { return SourceGenerator { m_builder, m_mapping, m_opening, m_closing }; }
 
     void set(StringView key, String value) { m_mapping.set(key, value); }