forked from qt-creator/qt-creator
Avoid warning on empty expressions
For some reason, Q_UNUSED includes already a semicolon, adding one on the user side creates an additional empty statement. Change-Id: I9c5e8fac381345a60792cb75e2938fd53958d3b0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -62,7 +62,7 @@ FieldPageFactory::FieldPageFactory()
|
||||
|
||||
Utils::WizardPage *FieldPageFactory::create(JsonWizard *wizard, Core::Id typeId, const QVariant &data)
|
||||
{
|
||||
Q_UNUSED(wizard);
|
||||
Q_UNUSED(wizard)
|
||||
|
||||
QTC_ASSERT(canCreate(typeId), return nullptr);
|
||||
|
||||
@@ -109,8 +109,8 @@ FilePageFactory::FilePageFactory()
|
||||
|
||||
Utils::WizardPage *FilePageFactory::create(JsonWizard *wizard, Core::Id typeId, const QVariant &data)
|
||||
{
|
||||
Q_UNUSED(wizard);
|
||||
Q_UNUSED(data);
|
||||
Q_UNUSED(wizard)
|
||||
Q_UNUSED(data)
|
||||
QTC_ASSERT(canCreate(typeId), return nullptr);
|
||||
|
||||
return new JsonFilePage;
|
||||
@@ -143,7 +143,7 @@ KitsPageFactory::KitsPageFactory()
|
||||
|
||||
Utils::WizardPage *KitsPageFactory::create(JsonWizard *wizard, Core::Id typeId, const QVariant &data)
|
||||
{
|
||||
Q_UNUSED(wizard);
|
||||
Q_UNUSED(wizard)
|
||||
QTC_ASSERT(canCreate(typeId), return nullptr);
|
||||
|
||||
auto page = new JsonKitsPage;
|
||||
@@ -203,8 +203,8 @@ ProjectPageFactory::ProjectPageFactory()
|
||||
|
||||
Utils::WizardPage *ProjectPageFactory::create(JsonWizard *wizard, Core::Id typeId, const QVariant &data)
|
||||
{
|
||||
Q_UNUSED(wizard);
|
||||
Q_UNUSED(data);
|
||||
Q_UNUSED(wizard)
|
||||
Q_UNUSED(data)
|
||||
QTC_ASSERT(canCreate(typeId), return nullptr);
|
||||
|
||||
auto page = new JsonProjectPage;
|
||||
@@ -226,7 +226,7 @@ Utils::WizardPage *ProjectPageFactory::create(JsonWizard *wizard, Core::Id typeI
|
||||
|
||||
bool ProjectPageFactory::validateData(Core::Id typeId, const QVariant &data, QString *errorMessage)
|
||||
{
|
||||
Q_UNUSED(errorMessage);
|
||||
Q_UNUSED(errorMessage)
|
||||
|
||||
QTC_ASSERT(canCreate(typeId), return false);
|
||||
if (!data.isNull() && data.type() != QVariant::Map) {
|
||||
@@ -263,8 +263,8 @@ SummaryPageFactory::SummaryPageFactory()
|
||||
|
||||
Utils::WizardPage *SummaryPageFactory::create(JsonWizard *wizard, Core::Id typeId, const QVariant &data)
|
||||
{
|
||||
Q_UNUSED(wizard);
|
||||
Q_UNUSED(data);
|
||||
Q_UNUSED(wizard)
|
||||
Q_UNUSED(data)
|
||||
QTC_ASSERT(canCreate(typeId), return nullptr);
|
||||
|
||||
auto page = new JsonSummaryPage;
|
||||
|
||||
Reference in New Issue
Block a user