mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 06:08:50 +00:00
IOFile: Get rid of IOFile's ReleaseHandle function
Transfer of handles should be done via std::move.
This commit is contained in:
parent
ed6e346664
commit
6f08ef9a25
6 changed files with 27 additions and 29 deletions
|
@ -947,13 +947,6 @@ bool IOFile::Close()
|
|||
return m_good;
|
||||
}
|
||||
|
||||
std::FILE* IOFile::ReleaseHandle()
|
||||
{
|
||||
std::FILE* const ret = m_file;
|
||||
m_file = nullptr;
|
||||
return ret;
|
||||
}
|
||||
|
||||
void IOFile::SetHandle(std::FILE* file)
|
||||
{
|
||||
Close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue