Skip to content
Snippets Groups Projects
Commit 964154ce authored by Lioncash's avatar Lioncash
Browse files

file_util: std::move FST entries in ScanDirectoryTree()

Avoids unnecessary copies when building up the FST entries.
parent 53a219f1
No related branches found
No related tags found
No related merge requests found
...@@ -480,7 +480,7 @@ unsigned ScanDirectoryTree(const std::string& directory, FSTEntry& parent_entry, ...@@ -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;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment