file-sys: Make use of std::string_view where applicable

Same behavior, but makes the interface more flexible and allows
non-std::string instances to be used with it.
This commit is contained in:
Lioncash
2020-05-01 09:49:36 -04:00
parent 85d37c9994
commit 147073a5a0
6 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -47,10 +47,10 @@ public:
};
/// Checks the status of the specified file / directory by the Path on the host file system.
HostStatus GetHostStatus(const std::string& mount_point) const;
HostStatus GetHostStatus(std::string_view mount_point) const;
/// Builds a full path on the host file system.
std::string BuildHostPath(const std::string& mount_point) const;
std::string BuildHostPath(std::string_view mount_point) const;
private:
std::vector<std::string> path_sequence;