mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-01 08:48:35 +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
|
@ -95,7 +95,7 @@ void DynamicLibrary::Close()
|
|||
return;
|
||||
|
||||
#ifdef _WIN32
|
||||
FreeLibrary(reinterpret_cast<HMODULE>(m_handle));
|
||||
FreeLibrary(static_cast<HMODULE>(m_handle));
|
||||
#else
|
||||
dlclose(m_handle);
|
||||
#endif
|
||||
|
@ -105,7 +105,7 @@ void DynamicLibrary::Close()
|
|||
void* DynamicLibrary::GetSymbolAddress(const char* name) const
|
||||
{
|
||||
#ifdef _WIN32
|
||||
return reinterpret_cast<void*>(GetProcAddress(reinterpret_cast<HMODULE>(m_handle), name));
|
||||
return reinterpret_cast<void*>(GetProcAddress(static_cast<HMODULE>(m_handle), name));
|
||||
#else
|
||||
return reinterpret_cast<void*>(dlsym(m_handle, name));
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue