Adjust function signature

Don't pass bool by reference if not necessary.
This commit is contained in:
WarmUpTill
2021-04-14 20:30:29 +02:00
committed by WarmUpTill
parent acf1ae63aa
commit 139df8a641
14 changed files with 86 additions and 63 deletions

View File

@@ -80,13 +80,14 @@ void AdvSceneSwitcher::on_mediaDown_clicked()
switcher->mediaSwitches[index + 1]);
}
void SwitcherData::checkMediaSwitch(bool &match, OBSWeakSource &scene,
bool SwitcherData::checkMediaSwitch(OBSWeakSource &scene,
OBSWeakSource &transition)
{
if (MediaSwitch::pause) {
return;
return false;
}
bool match = false;
for (MediaSwitch &mediaSwitch : mediaSwitches) {
if (!mediaSwitch.initialized()) {
continue;
@@ -196,6 +197,7 @@ void SwitcherData::checkMediaSwitch(bool &match, OBSWeakSource &scene,
break;
}
}
return match;
}
void SwitcherData::saveMediaSwitches(obs_data_t *obj)