UI,libobs,libobs-opengl,obs-ffmpeg: Remove unneeded cast in switches
Those casts were usually used to workaround switch warnings. Also adds default to OBS frontend event switches that had this workaround.
This commit is contained in:
parent
9cde3c302c
commit
cf5c68b773
6 changed files with 10 additions and 6 deletions
|
|
@ -22,13 +22,15 @@ void OBSBasicStats::OBSFrontendEvent(enum obs_frontend_event event, void *ptr)
|
|||
{
|
||||
OBSBasicStats *stats = reinterpret_cast<OBSBasicStats *>(ptr);
|
||||
|
||||
switch ((int)event) {
|
||||
switch (event) {
|
||||
case OBS_FRONTEND_EVENT_RECORDING_STARTED:
|
||||
stats->StartRecTimeLeft();
|
||||
break;
|
||||
case OBS_FRONTEND_EVENT_RECORDING_STOPPED:
|
||||
stats->ResetRecTimeLeft();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue