aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-06-03 10:30:31 +0100
committergingerBill <bill@gingerbill.org>2018-06-03 10:30:31 +0100
commit12b870ba6671854a3de8605f8dd8f36d1de90c6a (patch)
treefdae9d80ef49a2cf0fcce9e84bd5a918ba614807 /src/check_type.cpp
parent6202fb83738027a312c88f544c121b65823313c1 (diff)
Use const & for Array<AstNode *> parameters
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index c75832446..387369f7d 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -31,7 +31,7 @@ void populate_using_entity_scope(CheckerContext *ctx, AstNode *node, Type *t) {
}
-void check_struct_fields(CheckerContext *ctx, AstNode *node, Array<Entity *> *fields, Array<AstNode *> params,
+void check_struct_fields(CheckerContext *ctx, AstNode *node, Array<Entity *> *fields, Array<AstNode *> const &params,
isize init_field_capacity, Type *named_type, String context) {
*fields = array_make<Entity *>(heap_allocator(), 0, init_field_capacity);