pass param as ref in ZigList::append

This commit is contained in:
ScorrMorr authored and Andrew Kelley committed 2019-09-19 11:41:18 -04:00
1 parent 1eb33966b1
commit 7ebb7ca580
1 file changed
+1 -1
+1 -1
View File
@@ -15,7 +15,7 @@ struct ZigList {
void deinit() {
free(items);
}
void append(T item) {
void append(const T& item) {
ensure_capacity(length + 1);
items[length++] = item;
}