From 0e9d58e82a86dc8948aca9bbb12c647023031cbd Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 20 Jul 2018 00:04:51 -0400 Subject: vfs_offset: std::move file and name parameters of OffsetVfsFile Avoids potentially unnecessary atomic reference count incrementing and decrementing, as well as string copying. --- src/core/file_sys/vfs_offset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/file_sys/vfs_offset.h') diff --git a/src/core/file_sys/vfs_offset.h b/src/core/file_sys/vfs_offset.h index adc615b38..2e16e47eb 100644 --- a/src/core/file_sys/vfs_offset.h +++ b/src/core/file_sys/vfs_offset.h @@ -14,7 +14,7 @@ namespace FileSys { // the size of this wrapper. struct OffsetVfsFile : public VfsFile { OffsetVfsFile(std::shared_ptr 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; -- cgit v1.2.3