frontend: Use static_cast when casting from void pointers

Using static_cast is preferred here, as it is safer to use than
reinterpret_cast.
This commit is contained in:
cg2121 2025-01-28 04:28:33 -06:00 • committed by Ryan Foster
commit d7cce79d7e
22 changed files with 73 additions and 79 deletions

View file

@ -99,7 +99,7 @@ void OBSBasic::UnhideAllAudioControls()
auto PreEnum = [](void *data, obs_source_t *source) -> bool /* -- */
{
return (*reinterpret_cast<UnhideAudioMixer_t *>(data))(source);
return (*static_cast<UnhideAudioMixer_t *>(data))(source);
};
obs_enum_sources(PreEnum, &UnhideAudioMixer);