mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Resolve unused parameter warnings
This commit is contained in:
parent
ee72bb192c
commit
5bb10a4aef
|
|
@ -22,7 +22,7 @@ void AdvSceneSwitcher::on_triggerAdd_clicked()
|
|||
listAddClicked(ui->sceneTriggers,
|
||||
new SceneTriggerWidget(this,
|
||||
&switcher->sceneTriggers.back()),
|
||||
ui->triggerAdd, addPulse);
|
||||
addPulse);
|
||||
|
||||
ui->triggerHelp->setVisible(false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ void AdvSceneSwitcher::on_audioAdd_clicked()
|
|||
AudioSwitchWidget *sw =
|
||||
new AudioSwitchWidget(this, &switcher->audioSwitches.back());
|
||||
|
||||
listAddClicked(ui->audioSwitches, sw, ui->audioAdd, addPulse);
|
||||
listAddClicked(ui->audioSwitches, sw, addPulse);
|
||||
|
||||
ui->audioHelp->setVisible(false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ void AdvSceneSwitcher::on_executableAdd_clicked()
|
|||
listAddClicked(ui->executables,
|
||||
new ExecutableSwitchWidget(
|
||||
this, &switcher->executableSwitches.back()),
|
||||
ui->executableAdd, addPulse);
|
||||
addPulse);
|
||||
|
||||
ui->exeHelp->setVisible(false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -291,7 +291,7 @@ void AdvSceneSwitcher::on_fileAdd_clicked()
|
|||
listAddClicked(ui->fileSwitches,
|
||||
new FileSwitchWidget(this,
|
||||
&switcher->fileSwitches.back()),
|
||||
ui->fileAdd, addPulse);
|
||||
addPulse);
|
||||
|
||||
ui->fileHelp->setVisible(false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ void AdvSceneSwitcher::on_mediaAdd_clicked()
|
|||
listAddClicked(ui->mediaSwitches,
|
||||
new MediaSwitchWidget(this,
|
||||
&switcher->mediaSwitches.back()),
|
||||
ui->mediaAdd, addPulse);
|
||||
addPulse);
|
||||
|
||||
ui->mediaHelp->setVisible(false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ void AdvSceneSwitcher::on_pauseAdd_clicked()
|
|||
listAddClicked(ui->pauseEntries,
|
||||
new PauseEntryWidget(this,
|
||||
&switcher->pauseEntries.back()),
|
||||
ui->pauseAdd, addPulse);
|
||||
addPulse);
|
||||
|
||||
ui->pauseHelp->setVisible(false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ void AdvSceneSwitcher::on_randomAdd_clicked()
|
|||
listAddClicked(ui->randomSwitches,
|
||||
new RandomSwitchWidget(this,
|
||||
&switcher->randomSwitches.back()),
|
||||
ui->randomAdd, addPulse);
|
||||
addPulse);
|
||||
|
||||
ui->randomHelp->setVisible(false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ void AdvSceneSwitcher::on_screenRegionAdd_clicked()
|
|||
listAddClicked(ui->screenRegionSwitches,
|
||||
new ScreenRegionWidget(
|
||||
this, &switcher->screenRegionSwitches.back()),
|
||||
ui->screenRegionAdd, addPulse);
|
||||
addPulse);
|
||||
|
||||
ui->regionHelp->setVisible(false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ void AdvSceneSwitcher::on_sceneSequenceAdd_clicked()
|
|||
listAddClicked(ui->sceneSequenceSwitches,
|
||||
new SequenceWidget(
|
||||
this, &switcher->sceneSequenceSwitches.back()),
|
||||
ui->sceneSequenceAdd, addPulse);
|
||||
addPulse);
|
||||
|
||||
ui->sequenceHelp->setVisible(false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ void AdvSceneSwitcher::on_timeAdd_clicked()
|
|||
listAddClicked(ui->timeSwitches,
|
||||
new TimeSwitchWidget(this,
|
||||
&switcher->timeSwitches.back()),
|
||||
ui->timeAdd, addPulse);
|
||||
addPulse);
|
||||
|
||||
ui->timeHelp->setVisible(false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ void AdvSceneSwitcher::on_videoAdd_clicked()
|
|||
VideoSwitchWidget *sw =
|
||||
new VideoSwitchWidget(this, &switcher->videoSwitches.back());
|
||||
|
||||
listAddClicked(ui->videoSwitches, sw, ui->videoAdd, addPulse);
|
||||
listAddClicked(ui->videoSwitches, sw, addPulse);
|
||||
|
||||
ui->videoHelp->setVisible(false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ void AdvSceneSwitcher::on_windowAdd_clicked()
|
|||
listAddClicked(ui->windowSwitches,
|
||||
new WindowSwitchWidget(this,
|
||||
&switcher->windowSwitches.back()),
|
||||
ui->windowAdd, addPulse);
|
||||
addPulse);
|
||||
|
||||
ui->windowHelp->setVisible(false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ void MacroInputSelection::SetInputs(const MacroInputVariables &inputs)
|
|||
void MacroInputSelection::Add()
|
||||
{
|
||||
std::string varName;
|
||||
bool accepted = VariableSelectionDialog::AskForVariable(this, varName);
|
||||
bool accepted = VariableSelectionDialog::AskForVariable(varName);
|
||||
|
||||
if (!accepted || varName.empty()) {
|
||||
return;
|
||||
|
|
@ -155,7 +155,7 @@ void MacroInputSelection::Down()
|
|||
void MacroInputSelection::Clicked(QListWidgetItem *item)
|
||||
{
|
||||
std::string varName;
|
||||
bool accepted = VariableSelectionDialog::AskForVariable(this, varName);
|
||||
bool accepted = VariableSelectionDialog::AskForVariable(varName);
|
||||
|
||||
if (!accepted || varName.empty()) {
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ void MacroList::MacroRemove(const QString &name)
|
|||
void MacroList::Add()
|
||||
{
|
||||
std::string macroName;
|
||||
bool accepted = MacroSelectionDialog::AskForMacro(this, macroName);
|
||||
bool accepted = MacroSelectionDialog::AskForMacro(macroName);
|
||||
|
||||
if (!accepted || macroName.empty()) {
|
||||
return;
|
||||
|
|
@ -132,7 +132,7 @@ void MacroList::Down()
|
|||
void MacroList::Clicked(QListWidgetItem *item)
|
||||
{
|
||||
std::string macroName;
|
||||
bool accepted = MacroSelectionDialog::AskForMacro(this, macroName);
|
||||
bool accepted = MacroSelectionDialog::AskForMacro(macroName);
|
||||
|
||||
if (!accepted || macroName.empty()) {
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ MacroSelectionDialog::MacroSelectionDialog(QWidget *parent)
|
|||
setLayout(layout);
|
||||
}
|
||||
|
||||
bool MacroSelectionDialog::AskForMacro(QWidget *parent, std::string ¯oName)
|
||||
bool MacroSelectionDialog::AskForMacro(std::string ¯oName)
|
||||
{
|
||||
MacroSelectionDialog dialog(GetSettingsWindow());
|
||||
dialog.setWindowTitle(obs_module_text("AdvSceneSwitcher.windowTitle"));
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class MacroSelectionDialog : public QDialog {
|
|||
|
||||
public:
|
||||
MacroSelectionDialog(QWidget *parent);
|
||||
static bool AskForMacro(QWidget *parent, std::string ¯oName);
|
||||
static bool AskForMacro(std::string ¯oName);
|
||||
|
||||
private:
|
||||
MacroSelection *_macroSelection;
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ std::string ToString(double value)
|
|||
}
|
||||
|
||||
void listAddClicked(QListWidget *list, QWidget *newWidget,
|
||||
QPushButton *addButton, QObject *addHighlight)
|
||||
QObject *addHighlight)
|
||||
{
|
||||
if (!list || !newWidget) {
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ std::string ToString(double value);
|
|||
/* Legacy helpers */
|
||||
|
||||
void listAddClicked(QListWidget *list, QWidget *newWidget,
|
||||
QPushButton *addButton = nullptr,
|
||||
QObject *addHighlight = nullptr);
|
||||
bool listMoveUp(QListWidget *list);
|
||||
bool listMoveDown(QListWidget *list);
|
||||
|
|
|
|||
|
|
@ -300,8 +300,7 @@ VariableSelectionDialog::VariableSelectionDialog(QWidget *parent)
|
|||
|
||||
QWidget *GetSettingsWindow();
|
||||
|
||||
bool VariableSelectionDialog::AskForVariable(QWidget *parent,
|
||||
std::string &varName)
|
||||
bool VariableSelectionDialog::AskForVariable(std::string &varName)
|
||||
{
|
||||
VariableSelectionDialog dialog(GetSettingsWindow());
|
||||
dialog.setWindowTitle(obs_module_text("AdvSceneSwitcher.windowTitle"));
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ class VariableSelectionDialog : public QDialog {
|
|||
|
||||
public:
|
||||
VariableSelectionDialog(QWidget *parent);
|
||||
static bool AskForVariable(QWidget *parent, std::string &variableName);
|
||||
static bool AskForVariable(std::string &variableName);
|
||||
|
||||
private:
|
||||
VariableSelection *_variableSelection;
|
||||
|
|
|
|||
|
|
@ -84,8 +84,8 @@ GetTransformSettingValue(obs_scene_item *source,
|
|||
}
|
||||
|
||||
template<class T>
|
||||
static void logConversionError(T exception, const char *func,
|
||||
const char *target, const char *value)
|
||||
static void logConversionError(T, const char *func, const char *target,
|
||||
const char *value)
|
||||
{
|
||||
if (std::is_same<T, std::invalid_argument>::value) {
|
||||
blog(LOG_WARNING, "%s invalid %s value (%s)", func, target,
|
||||
|
|
|
|||
|
|
@ -285,7 +285,7 @@ setTempVarsHelper(obs_data_t *data,
|
|||
setTempVarsHelper(jsonStr, setVar);
|
||||
}
|
||||
|
||||
bool MacroConditionTwitch::CheckChannelGenericEvents(TwitchToken &token)
|
||||
bool MacroConditionTwitch::CheckChannelGenericEvents()
|
||||
{
|
||||
if (!_eventBuffer) {
|
||||
return false;
|
||||
|
|
@ -315,7 +315,7 @@ bool MacroConditionTwitch::CheckChannelGenericEvents(TwitchToken &token)
|
|||
return false;
|
||||
}
|
||||
|
||||
bool MacroConditionTwitch::CheckChannelLiveEvents(TwitchToken &token)
|
||||
bool MacroConditionTwitch::CheckChannelLiveEvents()
|
||||
{
|
||||
if (!_eventBuffer) {
|
||||
return false;
|
||||
|
|
@ -541,13 +541,13 @@ bool MacroConditionTwitch::CheckCondition()
|
|||
case Condition::USER_UNBAN_EVENT:
|
||||
case Condition::USER_MODERATOR_ADDITION_EVENT:
|
||||
case Condition::USER_MODERATOR_DELETION_EVENT:
|
||||
return CheckChannelGenericEvents(*token);
|
||||
return CheckChannelGenericEvents();
|
||||
case Condition::STREAM_ONLINE_LIVE_EVENT:
|
||||
case Condition::STREAM_ONLINE_PLAYLIST_EVENT:
|
||||
case Condition::STREAM_ONLINE_WATCHPARTY_EVENT:
|
||||
case Condition::STREAM_ONLINE_PREMIERE_EVENT:
|
||||
case Condition::STREAM_ONLINE_RERUN_EVENT:
|
||||
return CheckChannelLiveEvents(*token);
|
||||
return CheckChannelLiveEvents();
|
||||
case Condition::LIVE_POLLING: {
|
||||
auto info = _channel.GetLiveInfo(*token);
|
||||
if (!info) {
|
||||
|
|
|
|||
|
|
@ -107,8 +107,8 @@ public:
|
|||
bool _clearBufferOnMatch = false;
|
||||
|
||||
private:
|
||||
bool CheckChannelGenericEvents(TwitchToken &token);
|
||||
bool CheckChannelLiveEvents(TwitchToken &token);
|
||||
bool CheckChannelGenericEvents();
|
||||
bool CheckChannelLiveEvents();
|
||||
bool CheckChatMessages(TwitchToken &token);
|
||||
|
||||
void RegisterEventSubscription();
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ static std::vector<USBDeviceInfo> pollUSBDevices()
|
|||
return result;
|
||||
}
|
||||
|
||||
static int hotplugCallback(struct libusb_context *ctx,
|
||||
static int hotplugCallback(struct libusb_context *,
|
||||
struct libusb_device *device,
|
||||
libusb_hotplug_event event, void *user_data)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user