summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/vfs_offset.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-20 06:04:51 +0200
committerLioncash <mathew1800@gmail.com>2018-07-20 06:04:54 +0200
commit0e9d58e82a86dc8948aca9bbb12c647023031cbd (patch)
treef1218e442c70af8f026591f1c8967d4c3d02d664 /src/core/file_sys/vfs_offset.cpp
parentMerge pull request #726 from lioncash/overload (diff)
downloadyuzu-0e9d58e82a86dc8948aca9bbb12c647023031cbd.tar
yuzu-0e9d58e82a86dc8948aca9bbb12c647023031cbd.tar.gz
yuzu-0e9d58e82a86dc8948aca9bbb12c647023031cbd.tar.bz2
yuzu-0e9d58e82a86dc8948aca9bbb12c647023031cbd.tar.lz
yuzu-0e9d58e82a86dc8948aca9bbb12c647023031cbd.tar.xz
yuzu-0e9d58e82a86dc8948aca9bbb12c647023031cbd.tar.zst
yuzu-0e9d58e82a86dc8948aca9bbb12c647023031cbd.zip
Diffstat (limited to '')
-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 288499cb5..31fdd9aa1 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;