summaryrefslogtreecommitdiff
path: root/Source/Core/Common/IOFile.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/IOFile.h')
-rw-r--r--Source/Core/Common/IOFile.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/Core/Common/IOFile.h b/Source/Core/Common/IOFile.h
index b5895333b1..371012060d 100644
--- a/Source/Core/Common/IOFile.h
+++ b/Source/Core/Common/IOFile.h
@@ -87,14 +87,11 @@ public:
return WriteArray(elements.data(), elements.size());
}
- bool ReadBytes(void* data, size_t length)
- {
- return ReadArray(reinterpret_cast<char*>(data), length);
- }
+ bool ReadBytes(void* data, size_t length) { return ReadArray(static_cast<char*>(data), length); }
bool WriteBytes(const void* data, size_t length)
{
- return WriteArray(reinterpret_cast<const char*>(data), length);
+ return WriteArray(static_cast<const char*>(data), length);
}
bool WriteString(std::string_view str) { return WriteBytes(str.data(), str.size()); }