mirror of
https://github.com/ziglang/zig.git
synced 2024-11-16 00:57:04 +00:00
pass param as ref in ZigList::append
This commit is contained in:
parent
1eb33966b1
commit
7ebb7ca580
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user