UI: Fix unused-parameter warnings

This commit is contained in:
tytan652 2021-12-13 12:57:52 +01:00 committed by Jim
parent 580cf1163a
commit f4809b614e
2 changed files with 4 additions and 0 deletions

View file

@ -64,6 +64,8 @@ OAuthLogin::OAuthLogin(QWidget *parent, const std::string &url, bool token)
QVBoxLayout *topLayout = new QVBoxLayout(this);
topLayout->addWidget(cefWidget);
topLayout->addLayout(bottomLayout);
#else
UNUSED_PARAMETER(url);
#endif
}

View file

@ -181,6 +181,8 @@ void YoutubeAuth::SetChatId(QString &chat_id)
if (chat && chat->cefWidget) {
chat->cefWidget->setURL(chat_url.toStdString());
}
#else
UNUSED_PARAMETER(chat_id);
#endif
}