vfs_offset: std::move file and name parameters of OffsetVfsFile

Avoids potentially unnecessary atomic reference count incrementing and
decrementing, as well as string copying.
This commit is contained in:
Lioncash
2018-07-20 00:04:51 -04:00
parent d3cfaf95c8
commit 0e9d58e82a
2 changed files with 5 additions and 3 deletions

View File

@ -14,7 +14,7 @@ namespace FileSys {
// the size of this wrapper.
struct OffsetVfsFile : public VfsFile {
OffsetVfsFile(std::shared_ptr<VfsFile> file, size_t size, size_t offset = 0,
const std::string& new_name = "");
std::string new_name = "");
std::string GetName() const override;
size_t GetSize() const override;