mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-24 07:35:48 +01:00
file_util: std::move FST entries in ScanDirectoryTree()
Avoids unnecessary copies when building up the FST entries.
This commit is contained in:
parent
53a219f163
commit
964154ce44
@ -480,7 +480,7 @@ unsigned ScanDirectoryTree(const std::string& directory, FSTEntry& parent_entry,
|
|||||||
(*num_entries_out)++;
|
(*num_entries_out)++;
|
||||||
|
|
||||||
// Push into the tree
|
// Push into the tree
|
||||||
parent_entry.children.push_back(entry);
|
parent_entry.children.push_back(std::move(entry));
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user