ClangFormat: Remove unused variable

Change-Id: Iaaf0e1f34d76842b82827be4079ffd666755ab5b
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
Nikolai Kosjar
2018-12-05 09:07:10 +01:00
parent a46fccda0f
commit 843da50d5d

View File

@@ -133,7 +133,7 @@ void ClangFormatConfigWidget::initialize()
m_ui->applyButton->show(); m_ui->applyButton->show();
QLayoutItem *lastItem = m_ui->verticalLayout->itemAt(m_ui->verticalLayout->count() - 1); QLayoutItem *lastItem = m_ui->verticalLayout->itemAt(m_ui->verticalLayout->count() - 1);
if (QSpacerItem *spacer = lastItem->spacerItem()) if (lastItem->spacerItem())
m_ui->verticalLayout->removeItem(lastItem); m_ui->verticalLayout->removeItem(lastItem);
if (m_project && !m_project->projectDirectory().appendPath(SETTINGS_FILE_NAME).exists()) { if (m_project && !m_project->projectDirectory().appendPath(SETTINGS_FILE_NAME).exists()) {