Skip to content
Browse files

Common/FileUtil: Use std::string::data within ReadFileToString

With C++17, .data() for std::string now has a non-const overload, so we
can make use of that instead of taking the address of the first element.
  • Loading branch information...
lioncash committed May 28, 2019
1 parent c0f499b commit 734667998647e21b8ffec9a6ec4e32253af1a9d5
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Core/Common/FileUtil.cpp
@@ -900,7 +900,7 @@ bool ReadFileToString(const std::string& filename, std::string& str)
return false;

return file.ReadArray(&str[0], str.size());
return file.ReadArray(, str.size());

} // namespace File

0 comments on commit 7346679

Please sign in to comment.
You can’t perform that action at this time.