summaryrefslogtreecommitdiff
path: root/Source/Core/Common/FileUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/FileUtil.cpp')
-rw-r--r--Source/Core/Common/FileUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp
index 01f4417e1d..75118bffac 100644
--- a/Source/Core/Common/FileUtil.cpp
+++ b/Source/Core/Common/FileUtil.cpp
@@ -900,7 +900,7 @@ bool ReadFileToString(const std::string& filename, std::string& str)
return false;
str.resize(file.GetSize());
- return file.ReadArray(&str[0], str.size());
+ return file.ReadArray(str.data(), str.size());
}
} // namespace File