Procházet zdrojové kódy

UI: Fix unused-parameter warnings

tytan652 před 4 roky
rodič
revize
f4809b614e
2 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 2 0
      UI/auth-oauth.cpp
  2. 2 0
      UI/auth-youtube.cpp

+ 2 - 0
UI/auth-oauth.cpp

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

+ 2 - 0
UI/auth-youtube.cpp

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