mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-13 08:44:29 -04:00
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:
@@ -83,9 +83,7 @@ OBSBasicInteraction::~OBSBasicInteraction()
|
||||
|
||||
OBSEventFilter *OBSBasicInteraction::BuildEventFilter()
|
||||
{
|
||||
return new OBSEventFilter([this](QObject *obj, QEvent *event) {
|
||||
UNUSED_PARAMETER(obj);
|
||||
|
||||
return new OBSEventFilter([this](QObject *, QEvent *event) {
|
||||
switch (event->type()) {
|
||||
case QEvent::MouseButtonPress:
|
||||
case QEvent::MouseButtonRelease:
|
||||
@@ -115,12 +113,10 @@ OBSEventFilter *OBSBasicInteraction::BuildEventFilter()
|
||||
});
|
||||
}
|
||||
|
||||
void OBSBasicInteraction::SourceRemoved(void *data, calldata_t *params)
|
||||
void OBSBasicInteraction::SourceRemoved(void *data, calldata_t *)
|
||||
{
|
||||
QMetaObject::invokeMethod(static_cast<OBSBasicInteraction *>(data),
|
||||
"close");
|
||||
|
||||
UNUSED_PARAMETER(params);
|
||||
}
|
||||
|
||||
void OBSBasicInteraction::SourceRenamed(void *data, calldata_t *params)
|
||||
|
||||
Reference in New Issue
Block a user