mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-14 05:08:39 -05:00
Fix warnings
This commit is contained in:
@@ -31,8 +31,7 @@ struct SceneSequenceSwitch : SceneSwitcherEntry {
|
||||
bool checkMatch(OBSWeakSource currentScene, int &linger,
|
||||
SceneSequenceSwitch *root = nullptr);
|
||||
bool checkDurationMatchInterruptible();
|
||||
void prepareUninterruptibleMatch(OBSWeakSource currentScene,
|
||||
int &linger);
|
||||
void prepareUninterruptibleMatch(int &linger);
|
||||
void advanceActiveSequence();
|
||||
void logAdvanceSequence();
|
||||
void logSequenceCanceled();
|
||||
|
||||
@@ -39,7 +39,7 @@ void MacroActionPluginState::LogAction()
|
||||
auto it = actionTypes.find(_action);
|
||||
switch (_action) {
|
||||
case PluginStateAction::STOP:
|
||||
blog(LOG_INFO, "stop() called by macro", it->second.c_str());
|
||||
blog(LOG_INFO, "stop() called by macro");
|
||||
break;
|
||||
default:
|
||||
blog(LOG_WARNING, "ignored unknown pluginState action %d",
|
||||
|
||||
@@ -415,7 +415,7 @@ bool SceneSequenceSwitch::checkMatch(OBSWeakSource currentScene, int &linger,
|
||||
match = checkDurationMatchInterruptible();
|
||||
} else {
|
||||
match = true;
|
||||
prepareUninterruptibleMatch(currentScene, linger);
|
||||
prepareUninterruptibleMatch(linger);
|
||||
}
|
||||
} else {
|
||||
delay.Reset();
|
||||
@@ -438,8 +438,7 @@ bool SceneSequenceSwitch::checkDurationMatchInterruptible()
|
||||
return false;
|
||||
}
|
||||
|
||||
void SceneSequenceSwitch::prepareUninterruptibleMatch(
|
||||
OBSWeakSource currentScene, int &linger)
|
||||
void SceneSequenceSwitch::prepareUninterruptibleMatch(int &linger)
|
||||
{
|
||||
int dur = delay.seconds * 1000;
|
||||
if (dur > 0) {
|
||||
|
||||
Reference in New Issue
Block a user