mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 17:24:47 +01:00
Refactor to avoid unnecessary copies (#13736)
* Refactor to avoid unnecessary copies * Fix dangling references
This commit is contained in:
@@ -278,7 +278,7 @@ void CustomListView::SetItems(const std::vector<ListViewItem>& items, bool initi
|
||||
|
||||
void CustomListView::SetItems(std::vector<ListViewItem>&& items, bool initialising)
|
||||
{
|
||||
Items = items;
|
||||
Items = std::move(items);
|
||||
SortItems(0, ColumnSortOrder::None);
|
||||
if (!initialising)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user