summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/partition_filesystem.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-24 02:27:08 +0200
committerLioncash <mathew1800@gmail.com>2018-07-24 02:27:11 +0200
commitdb48ebb9c9354a929a24b669851900eebc196110 (patch)
treea47fe3090125a3f312cbfb9451bc45d6b15151a7 /src/core/file_sys/partition_filesystem.cpp
parentMerge pull request #695 from DarkLordZach/nro-asset (diff)
downloadyuzu-db48ebb9c9354a929a24b669851900eebc196110.tar
yuzu-db48ebb9c9354a929a24b669851900eebc196110.tar.gz
yuzu-db48ebb9c9354a929a24b669851900eebc196110.tar.bz2
yuzu-db48ebb9c9354a929a24b669851900eebc196110.tar.lz
yuzu-db48ebb9c9354a929a24b669851900eebc196110.tar.xz
yuzu-db48ebb9c9354a929a24b669851900eebc196110.tar.zst
yuzu-db48ebb9c9354a929a24b669851900eebc196110.zip
Diffstat (limited to 'src/core/file_sys/partition_filesystem.cpp')
-rw-r--r--src/core/file_sys/partition_filesystem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/file_sys/partition_filesystem.cpp b/src/core/file_sys/partition_filesystem.cpp
index 8d2bd9f6b..521e21078 100644
--- a/src/core/file_sys/partition_filesystem.cpp
+++ b/src/core/file_sys/partition_filesystem.cpp
@@ -65,8 +65,8 @@ PartitionFilesystem::PartitionFilesystem(std::shared_ptr<VfsFile> file) {
std::string name(
reinterpret_cast<const char*>(&file_data[strtab_offset + entry.strtab_offset]));
- pfs_files.emplace_back(
- std::make_shared<OffsetVfsFile>(file, entry.size, content_offset + entry.offset, name));
+ pfs_files.emplace_back(std::make_shared<OffsetVfsFile>(
+ file, entry.size, content_offset + entry.offset, std::move(name)));
}
status = Loader::ResultStatus::Success;
@@ -109,7 +109,7 @@ bool PartitionFilesystem::ReplaceFileWithSubdirectory(VirtualFile file, VirtualD
return false;
const std::ptrdiff_t offset = std::distance(pfs_files.begin(), iter);
- pfs_files[offset] = pfs_files.back();
+ pfs_files[offset] = std::move(pfs_files.back());
pfs_files.pop_back();
pfs_dirs.emplace_back(std::move(dir));