Browse Source

AK: Make SourceGenerator move constructible

This makes us able to return one from a function
Hendiadyoin1 3 years ago
parent
commit
14caecefb1
1 changed files with 2 additions and 0 deletions
  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); }