diff options
| author | Dr. Dystopia <jonis9898@hotmail.com> | 2024-07-24 06:24:51 +0200 |
|---|---|---|
| committer | Dr. Dystopia <jonis9898@hotmail.com> | 2024-11-08 07:26:47 +0100 |
| commit | 6d44afc7dd129603401ce1a7ee4a059be1fbdda4 (patch) | |
| tree | 40118d5b05c1b88e035877eb0b4824fb49dcfe1b /Source/Core/Common/DynamicLibrary.cpp | |
| parent | 53ede795a2a7406872f0f5c872c7f67bd22f65e4 (diff) | |
Replace 'reinterpret_cast' with 'static_cast'
Diffstat (limited to 'Source/Core/Common/DynamicLibrary.cpp')
| -rw-r--r-- | Source/Core/Common/DynamicLibrary.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/DynamicLibrary.cpp b/Source/Core/Common/DynamicLibrary.cpp index 7871198dda..73c25ce2a2 100644 --- a/Source/Core/Common/DynamicLibrary.cpp +++ b/Source/Core/Common/DynamicLibrary.cpp @@ -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 |
