mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08: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:
@@ -17,7 +17,7 @@
|
||||
|
||||
void OBSBasicStats::OBSFrontendEvent(enum obs_frontend_event event, void *ptr)
|
||||
{
|
||||
OBSBasicStats *stats = reinterpret_cast<OBSBasicStats *>(ptr);
|
||||
OBSBasicStats *stats = static_cast<OBSBasicStats *>(ptr);
|
||||
|
||||
switch (event) {
|
||||
case OBS_FRONTEND_EVENT_RECORDING_STARTED:
|
||||
|
||||
Reference in New Issue
Block a user