Showing the changes to src/vm/list.cpp (1 of 10 files). Show all
Unified · Split
| @@ -26,11 +26,11 @@ std::shared_ptr<const type_descriptor_t> vm_list_t::type_desc() · 25 unmodified lines | ||
| 26 | 26 | |
| 27 | 27 | vm_list_t::vm_list_t(std::shared_ptr<const type_descriptor_t> td, vm_list_t *tail) |
| 28 | 28 | : vm_alloc_t(vm_list_t::type_desc()) |
| 29 | − , _element_type{ td } | |
| 30 | 29 | , _is_alloc{ sizeof(_mem) < td->size_in_bytes } |
| 31 | 30 | , _mem{} |
| 32 | 31 | , _tail{ nullptr } |
| 33 | 32 | { |
| 33 | + _element_type = std::move(td); | |
| 34 | 34 | assert(_element_type != nullptr); |
| 35 | 35 | set_tail(tail); |
| 36 | 36 | |