more c++ migration for ast/ir/code; reached a working condition here
[xonotic/gmqcc.git] / ast.h
diff --git a/ast.h b/ast.h
index 65abffdeaf1bc0485de4c461063735e41ff4f206..eeedfcc01368c7360ea201105973911795d30c77 100644 (file)
--- a/ast.h
+++ b/ast.h
@@ -626,7 +626,7 @@ struct ast_function
      * here to use in ast_function_label.
      */
     char labelbuf[64];
-    std::vector<ast_block*> blocks;
+    std::vector<std::unique_ptr<ast_block>> blocks;
     ast_value *varargs;
     ast_value *argc;
     ast_value *fixedparams;