diff options
| author | 2018-07-21 22:31:41 -0400 | |
|---|---|---|
| committer | 2018-07-21 22:31:44 -0400 | |
| commit | 964154ce44cfa25bd59c6fa10113e948a3b43d5c (patch) | |
| tree | 737a4e955b1eb666bd0086749603fe15b1b65058 /src/common/file_util.cpp | |
| parent | Merge pull request #759 from lioncash/redundant (diff) | |
| download | yuzu-964154ce44cfa25bd59c6fa10113e948a3b43d5c.tar.gz yuzu-964154ce44cfa25bd59c6fa10113e948a3b43d5c.tar.xz yuzu-964154ce44cfa25bd59c6fa10113e948a3b43d5c.zip | |
file_util: std::move FST entries in ScanDirectoryTree()
Avoids unnecessary copies when building up the FST entries.
Diffstat (limited to '')
| -rw-r--r-- | src/common/file_util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index d8163a4a8..543adbffb 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp | |||
| @@ -480,7 +480,7 @@ unsigned ScanDirectoryTree(const std::string& directory, FSTEntry& parent_entry, | |||
| 480 | (*num_entries_out)++; | 480 | (*num_entries_out)++; |
| 481 | 481 | ||
| 482 | // Push into the tree | 482 | // Push into the tree |
| 483 | parent_entry.children.push_back(entry); | 483 | parent_entry.children.push_back(std::move(entry)); |
| 484 | return true; | 484 | return true; |
| 485 | }; | 485 | }; |
| 486 | 486 | ||