diff options
| author | JosJuice <josjuice@gmail.com> | 2025-03-15 15:31:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-15 15:31:38 +0100 |
| commit | 8c7ab286f5b42d7f95b4d6c1369e2a11615a3a0b (patch) | |
| tree | adc97acc89e50fffe165f80e2f16f9c3d6900c96 /Source/Core/Common/DynamicLibrary.cpp | |
| parent | 3fb4084e25b1da3857d5d449dbc4417d731f3490 (diff) | |
| parent | 6d44afc7dd129603401ce1a7ee4a059be1fbdda4 (diff) | |
Merge pull request #13181 from tygyh/Replace-'reinterpret_cast'
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 |
