diff --git a/src/plugins/projectexplorer/buildsettingspropertiespage.cpp b/src/plugins/projectexplorer/buildsettingspropertiespage.cpp index 7dc7d3e70b0..74db6361c54 100644 --- a/src/plugins/projectexplorer/buildsettingspropertiespage.cpp +++ b/src/plugins/projectexplorer/buildsettingspropertiespage.cpp @@ -114,13 +114,11 @@ void BuildSettingsWidget::setupUi() vbox->setContentsMargins(0, 0, 0, 0); if (!m_target->buildConfigurationFactory()) { - QLabel * noSettingsLabel(new QLabel(this)); + QLabel *noSettingsLabel = new QLabel(this); noSettingsLabel->setText(tr("No build settings available")); - { - QFont f(noSettingsLabel->font()); - f.setPointSizeF(f.pointSizeF() * 1.2); - noSettingsLabel->setFont(f); - } + QFont f = noSettingsLabel->font(); + f.setPointSizeF(f.pointSizeF() * 1.2); + noSettingsLabel->setFont(f); vbox->addWidget(noSettingsLabel); return; } diff --git a/src/plugins/projectexplorer/buildsettingspropertiespage.h b/src/plugins/projectexplorer/buildsettingspropertiespage.h index c8ef586d0d0..fa4d58cf319 100644 --- a/src/plugins/projectexplorer/buildsettingspropertiespage.h +++ b/src/plugins/projectexplorer/buildsettingspropertiespage.h @@ -53,7 +53,7 @@ class IBuildStepFactory; namespace Internal { -const char * const BUILDSETTINGS_PANEL_ID("ProjectExplorer.BuildSettingsPanel"); +const char BUILDSETTINGS_PANEL_ID[] = "ProjectExplorer.BuildSettingsPanel"; class BuildSettingsPanelFactory : public ITargetPanelFactory { diff --git a/src/plugins/projectexplorer/runsettingspropertiespage.h b/src/plugins/projectexplorer/runsettingspropertiespage.h index 0f6e6fda3e5..304317a8d6e 100644 --- a/src/plugins/projectexplorer/runsettingspropertiespage.h +++ b/src/plugins/projectexplorer/runsettingspropertiespage.h @@ -55,7 +55,7 @@ class RunConfigWidget; namespace Internal { -const char * const RUNSETTINGS_PANEL_ID = "ProjectExplorer.RunSettingsPanel"; +const char RUNSETTINGS_PANEL_ID[] = "ProjectExplorer.RunSettingsPanel"; namespace Ui { class RunSettingsPropertiesPage;