pass param as ref in ZigList::append

This commit is contained in:
ScorrMorr 2019-09-19 11:35:40 +02:00 committed by Andrew Kelley
parent 1eb33966b1
commit 7ebb7ca580

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;
}