summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-05-23 13:37:44 -0400
committerGravatar Lioncash2019-05-23 13:37:47 -0400
commite3b25399868cd074e6b61dda73484f5b969fc3be (patch)
treebd33aab6bdf30ea62f3d24327b4f90a1cc6fd807 /src
parentcommon/file_util: Make IOFile's WriteString take a std::string_view (diff)
downloadyuzu-e3b25399868cd074e6b61dda73484f5b969fc3be.tar.gz
yuzu-e3b25399868cd074e6b61dda73484f5b969fc3be.tar.xz
yuzu-e3b25399868cd074e6b61dda73484f5b969fc3be.zip
common/file_util: Remove unnecessary c_str() calls
The file stream open functions have supported std::string overloads since C++11, so we don't need to use c_str() here. Same behavior, less code.
Diffstat (limited to 'src')
-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 cd5a0c5fc..88760be2f 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -286,8 +286,8 @@ private:
286template <typename T> 286template <typename T>
287void OpenFStream(T& fstream, const std::string& filename, std::ios_base::openmode openmode) { 287void OpenFStream(T& fstream, const std::string& filename, std::ios_base::openmode openmode) {
288#ifdef _MSC_VER 288#ifdef _MSC_VER
289 fstream.open(Common::UTF8ToUTF16W(filename).c_str(), openmode); 289 fstream.open(Common::UTF8ToUTF16W(filename), openmode);
290#else 290#else
291 fstream.open(filename.c_str(), openmode); 291 fstream.open(filename, openmode);
292#endif 292#endif
293} 293}