fs_user: std::move vectors where applicable
Allows removing some allocation churn in some locations by moving std::vectors into Path where applicable.
This commit is contained in:
@@ -12,10 +12,10 @@
|
||||
|
||||
namespace FileSys {
|
||||
|
||||
Path::Path(LowPathType type, const std::vector<u8>& data) : type(type) {
|
||||
Path::Path(LowPathType type, std::vector<u8> data) : type(type) {
|
||||
switch (type) {
|
||||
case LowPathType::Binary: {
|
||||
binary = data;
|
||||
binary = std::move(data);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user