diff options
author | Lioncash <mathew1800@gmail.com> | 2014-09-28 11:30:29 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2014-09-28 11:44:14 -0400 |
commit | ca2f0de08abaffea419e674274113b27acdf6ece (patch) | |
tree | 30bcdb7a6178ec37b97eac7929b8e92c0e9b0a1b /src/common/file_util.cpp | |
parent | ee7cfc71bd8663b77a43c5ba577074972d9b7ad9 (diff) |
Fix warnings in core and common
Diffstat (limited to 'src/common/file_util.cpp')
-rw-r--r-- | src/common/file_util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 40cd32d96d..9292a1cd69 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -763,12 +763,12 @@ const std::string& GetUserPath(const unsigned int DirIDX, const std::string &new // return dir; //} -bool WriteStringToFile(bool text_file, const std::string &str, const char *filename) +size_t WriteStringToFile(bool text_file, const std::string &str, const char *filename) { return FileUtil::IOFile(filename, text_file ? "w" : "wb").WriteBytes(str.data(), str.size()); } -bool ReadFileToString(bool text_file, const char *filename, std::string &str) +size_t ReadFileToString(bool text_file, const char *filename, std::string &str) { FileUtil::IOFile file(filename, text_file ? "r" : "rb"); auto const f = file.GetHandle(); |