diff options
| -rw-r--r-- | src/common/file_util.h | 4 |
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: | |||
| 257 | return WriteArray(&object, 1); | 257 | return WriteArray(&object, 1); |
| 258 | } | 258 | } |
| 259 | 259 | ||
| 260 | std::size_t WriteString(const std::string& str) { | 260 | std::size_t WriteString(std::string_view str) { |
| 261 | return WriteArray(str.c_str(), str.length()); | 261 | return WriteArray(str.data(), str.length()); |
| 262 | } | 262 | } |
| 263 | 263 | ||
| 264 | bool IsOpen() const { | 264 | bool IsOpen() const { |