mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 21:58:48 +00:00
Replace 'reinterpret_cast' with 'static_cast'
This commit is contained in:
parent
53ede795a2
commit
6d44afc7dd
26 changed files with 31 additions and 36 deletions
|
@ -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()); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue