mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-18 13:33:27 -04:00
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:
@@ -256,7 +256,7 @@ void OBSBasicSourceSelect::on_buttonBox_accepted()
|
||||
obs_scene_t *scene = obs_get_scene_by_name(scene_name);
|
||||
OBSSceneItem item;
|
||||
auto cb = [](obs_scene_t *, obs_sceneitem_t *sceneitem, void *data) {
|
||||
OBSSceneItem &last = *reinterpret_cast<OBSSceneItem *>(data);
|
||||
OBSSceneItem &last = *static_cast<OBSSceneItem *>(data);
|
||||
last = sceneitem;
|
||||
return true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user