Skip to content

Commit 0fb1807

Browse files
authored
Make ItemList a refference
1 parent 41b0616 commit 0fb1807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libnest2d_js/libnest2d_js.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ std::vector<Point> jsArrayToPointVector(const emscripten::val& jsArray) {
6666
}
6767

6868
// Wrapper function for nest() to handle JavaScript arrays
69-
size_t nestWrapper(ItemList jsItems, const Box& bin) {
69+
size_t nestWrapper(ItemList& jsItems, const Box& bin) {
7070
// Convert JavaScript array to std::vector<Item>
7171
std::vector<Item> items;
7272
auto length = jsItems["length"].as<unsigned>();

0 commit comments

Comments
 (0)