UI: Remove UNUSED_PARAMETER where unnecessary

Since cpp allows removing the unused parameters from the function name,
UNUSED_PARAMETER is not needed, unless it is in an ifdef.
This commit is contained in:
cg2121
2023-01-28 20:42:41 -06:00
committed by Jim
parent b2a83a3145
commit 3a610c698e
24 changed files with 93 additions and 225 deletions

View File

@@ -263,8 +263,7 @@ void OBSBasicSourceSelect::on_buttonBox_accepted()
const char *scene_name =
obs_source_get_name(main->GetCurrentSceneSource());
auto undo = [scene_name, main](const std::string &data) {
UNUSED_PARAMETER(data);
auto undo = [scene_name, main](const std::string &) {
obs_source_t *scene_source =
obs_get_source_by_name(scene_name);
main->SetCurrentScene(scene_source, true);
@@ -272,9 +271,8 @@ void OBSBasicSourceSelect::on_buttonBox_accepted()
obs_scene_t *scene = obs_get_scene_by_name(scene_name);
OBSSceneItem item;
auto cb = [](obs_scene_t *scene,
obs_sceneitem_t *sceneitem, void *data) {
UNUSED_PARAMETER(scene);
auto cb = [](obs_scene_t *, obs_sceneitem_t *sceneitem,
void *data) {
OBSSceneItem &last =
*reinterpret_cast<OBSSceneItem *>(data);
last = sceneitem;
@@ -287,8 +285,7 @@ void OBSBasicSourceSelect::on_buttonBox_accepted()
};
auto redo = [scene_name, main, source_name,
visible](const std::string &data) {
UNUSED_PARAMETER(data);
visible](const std::string &) {
obs_source_t *scene_source =
obs_get_source_by_name(scene_name);
main->SetCurrentScene(scene_source, true);