Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

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

Lioncash2684cc586ea2
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index d8163a4a83..543adbffb4 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,
(*num_entries_out)++;
// Push into the tree
- parent_entry.children.push_back(entry);
+ parent_entry.children.push_back(std::move(entry));
return true;
};