summaryrefslogtreecommitdiffstats
path: root/src/common/file_util.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-23 19:32:49 +0200
committerLioncash <mathew1800@gmail.com>2019-05-23 19:35:31 +0200
commit8cd3d9be2646eda7177344045984f2baf9520ad3 (patch)
tree053bbcf48663e6086cc59a971dd91b72038fed8c /src/common/file_util.h
parentshader/decode/memory: Remove left in debug pragma (diff)
downloadyuzu-8cd3d9be2646eda7177344045984f2baf9520ad3.tar
yuzu-8cd3d9be2646eda7177344045984f2baf9520ad3.tar.gz
yuzu-8cd3d9be2646eda7177344045984f2baf9520ad3.tar.bz2
yuzu-8cd3d9be2646eda7177344045984f2baf9520ad3.tar.lz
yuzu-8cd3d9be2646eda7177344045984f2baf9520ad3.tar.xz
yuzu-8cd3d9be2646eda7177344045984f2baf9520ad3.tar.zst
yuzu-8cd3d9be2646eda7177344045984f2baf9520ad3.zip
Diffstat (limited to 'src/common/file_util.h')
-rw-r--r--src/common/file_util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h
index 38cc7f059..cd5a0c5fc 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -257,8 +257,8 @@ public:
return WriteArray(&object, 1);
}
- std::size_t WriteString(const std::string& str) {
- return WriteArray(str.c_str(), str.length());
+ std::size_t WriteString(std::string_view str) {
+ return WriteArray(str.data(), str.length());
}
bool IsOpen() const {