Skip to content

Commit

Permalink
Use static_cast instead of reinterpret_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
norihiro committed Oct 18, 2024
1 parent 41f9c57 commit ff8e1ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scope-widget-properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ScopeWidgetProperties::ScopeWidgetProperties(QWidget *parent, obs_source_t *sour
prop_cb = (PropertiesReloadCallback)obs_source_properties;

PropertiesUpdateCallback handle_memory = [](void *vp, obs_data_t *new_settings) {
obs_source_t *source = reinterpret_cast<obs_source_t *>(vp);
obs_source_t *source = static_cast<obs_source_t *>(vp);

obs_source_update(source, new_settings);
};
Expand Down

0 comments on commit ff8e1ce

Please sign in to comment.