aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/vfs_offset.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-20 09:21:15 -0700
committerGitHub <noreply@github.com>2018-07-20 09:21:15 -0700
commit083b638e85ec57b7f71c430bc47d275e43f0a7cd (patch)
tree812c30415af58b2a478b005b10b81cd69bb5a5cd /src/core/file_sys/vfs_offset.cpp
parent059fa4330e8b61f0f70d13ccd069c3f0fe3ebd7c (diff)
parentc9b1340d3d80582225e9a207e357adfa32c7628d (diff)
Merge pull request #737 from lioncash/move
filesys/loader: std::move VirtualFile instances in constructors where applicable
Diffstat (limited to 'src/core/file_sys/vfs_offset.cpp')
-rw-r--r--src/core/file_sys/vfs_offset.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/file_sys/vfs_offset.cpp b/src/core/file_sys/vfs_offset.cpp
index 288499cb51..31fdd9aa19 100644
--- a/src/core/file_sys/vfs_offset.cpp
+++ b/src/core/file_sys/vfs_offset.cpp
@@ -2,13 +2,15 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include <utility>
+
#include "core/file_sys/vfs_offset.h"
namespace FileSys {
OffsetVfsFile::OffsetVfsFile(std::shared_ptr<VfsFile> file_, size_t size_, size_t offset_,
- const std::string& name_)
- : file(file_), offset(offset_), size(size_), name(name_) {}
+ std::string name_)
+ : file(std::move(file_)), offset(offset_), size(size_), name(std::move(name_)) {}
std::string OffsetVfsFile::GetName() const {
return name.empty() ? file->GetName() : name;