aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/vfs_offset.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-22 01:23:29 -0400
committerLioncash <mathew1800@gmail.com>2018-07-22 03:22:21 -0400
commit398444e67635c158a20301d1a32a1c45bfdd4056 (patch)
treedb638ebe09199ae64b69f5911136effa9756571f /src/core/file_sys/vfs_offset.h
parentef163c1a15e25228cc7f6777e07905778d6f4f89 (diff)
file_util, vfs: Use std::string_view where applicable
Avoids unnecessary construction of std::string instances where applicable.
Diffstat (limited to 'src/core/file_sys/vfs_offset.h')
-rw-r--r--src/core/file_sys/vfs_offset.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/file_sys/vfs_offset.h b/src/core/file_sys/vfs_offset.h
index ded4827f5..4f471e3ba 100644
--- a/src/core/file_sys/vfs_offset.h
+++ b/src/core/file_sys/vfs_offset.h
@@ -4,6 +4,9 @@
#pragma once
+#include <memory>
+#include <string_view>
+
#include "core/file_sys/vfs.h"
namespace FileSys {
@@ -30,7 +33,7 @@ struct OffsetVfsFile : public VfsFile {
bool WriteByte(u8 data, size_t offset) override;
size_t WriteBytes(const std::vector<u8>& data, size_t offset) override;
- bool Rename(const std::string& name) override;
+ bool Rename(std::string_view name) override;
size_t GetOffset() const;