mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-20 17:17:25 -05:00
Fix warnings
This commit is contained in:
parent
22f4c11ee3
commit
d107f653de
|
|
@ -55,7 +55,7 @@ Connection::Connection(std::string name, std::string address, uint64_t port,
|
|||
{
|
||||
}
|
||||
|
||||
Connection::Connection(const Connection &other)
|
||||
Connection::Connection(const Connection &other) : Item(other)
|
||||
{
|
||||
_name = other._name;
|
||||
_address = other._address;
|
||||
|
|
|
|||
|
|
@ -49,9 +49,9 @@ RegexConfig::GetRegularExpression(const std::string &expr) const
|
|||
|
||||
RegexConfigWidget::RegexConfigWidget(QWidget *parent)
|
||||
: QWidget(parent),
|
||||
_openSettings(new QPushButton()),
|
||||
_enable(new QCheckBox(
|
||||
obs_module_text("AdvSceneSwitcher.regex.enable"))),
|
||||
_openSettings(new QPushButton())
|
||||
obs_module_text("AdvSceneSwitcher.regex.enable")))
|
||||
{
|
||||
_openSettings->setMaximumWidth(22);
|
||||
setButtonIcon(_openSettings, ":/settings/images/settings/general.svg");
|
||||
|
|
|
|||
|
|
@ -409,7 +409,6 @@ void SceneItemSelectionWidget::SelectionChanged(const QString &name)
|
|||
s._type = SceneItemSelection::Type::VARIABLE;
|
||||
s._variable = GetWeakVariableByQString(name);
|
||||
} else if (idx < _itemsEndIdx) {
|
||||
auto group = GetSceneGroupByQString(name);
|
||||
s._type = SceneItemSelection::Type::SOURCE;
|
||||
s._sceneItem = GetWeakSourceByQString(name);
|
||||
}
|
||||
|
|
@ -445,20 +444,19 @@ void SceneItemSelectionWidget::IdxChanged(int idx)
|
|||
emit SceneItemChanged(_currentSelection);
|
||||
}
|
||||
|
||||
void SceneItemSelectionWidget::ItemAdd(const QString &name)
|
||||
void SceneItemSelectionWidget::ItemAdd(const QString &)
|
||||
{
|
||||
blockSignals(true);
|
||||
Reset();
|
||||
blockSignals(false);
|
||||
}
|
||||
|
||||
void SceneItemSelectionWidget::ItemRemove(const QString &name)
|
||||
void SceneItemSelectionWidget::ItemRemove(const QString &)
|
||||
{
|
||||
Reset();
|
||||
}
|
||||
|
||||
void SceneItemSelectionWidget::ItemRename(const QString &oldName,
|
||||
const QString &newName)
|
||||
void SceneItemSelectionWidget::ItemRename(const QString &, const QString &)
|
||||
{
|
||||
blockSignals(true);
|
||||
Reset();
|
||||
|
|
|
|||
|
|
@ -353,13 +353,13 @@ bool SceneSelectionWidget::IsPreviousSceneSelected(const QString &name)
|
|||
"AdvSceneSwitcher.selectPreviousScene")));
|
||||
}
|
||||
|
||||
void SceneSelectionWidget::SelectionChanged(const QString &name)
|
||||
void SceneSelectionWidget::SelectionChanged(const QString &)
|
||||
{
|
||||
_currentSelection = CurrentSelection();
|
||||
emit SceneChanged(_currentSelection);
|
||||
}
|
||||
|
||||
void SceneSelectionWidget::ItemAdd(const QString &name)
|
||||
void SceneSelectionWidget::ItemAdd(const QString &)
|
||||
{
|
||||
blockSignals(true);
|
||||
Reset();
|
||||
|
|
@ -391,8 +391,7 @@ void SceneSelectionWidget::ItemRemove(const QString &name)
|
|||
blockSignals(false);
|
||||
}
|
||||
|
||||
void SceneSelectionWidget::ItemRename(const QString &oldName,
|
||||
const QString &newName)
|
||||
void SceneSelectionWidget::ItemRename(const QString &, const QString &)
|
||||
{
|
||||
blockSignals(true);
|
||||
Reset();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user