Commit 5c715fa1 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Some small code style fixes

parent e7936d38
......@@ -461,7 +461,7 @@ GenericBuildSettingsWidget::GenericBuildSettingsWidget(GenericProject *project)
fl->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow);
// Configuration name
m_nameLineEdit = new QLineEdit();
m_nameLineEdit = new QLineEdit;
fl->addRow(tr("Configuration Name:"), m_nameLineEdit);
connect(m_nameLineEdit, SIGNAL(textEdited(QString)),
......@@ -504,7 +504,7 @@ void GenericBuildSettingsWidget::init(BuildConfiguration *bc)
m_pathChooser->setPath(m_buildConfiguration->buildDirectory());
}
void GenericBuildSettingsWidget::configNameEdited(QString name)
void GenericBuildSettingsWidget::configNameEdited(const QString &name)
{
m_buildConfiguration->setDisplayName(name);
}
......
......@@ -183,7 +183,7 @@ public:
virtual void init(ProjectExplorer::BuildConfiguration *bc);
private Q_SLOTS:
void configNameEdited(QString name);
void configNameEdited(const QString &name);
void buildDirectoryChanged();
void toolChainSelected(int index);
......
......@@ -98,7 +98,7 @@ QVariantMap BuildConfiguration::toMap() const
void BuildConfiguration::cloneSteps(BuildConfiguration *source)
{
Q_ASSERT(source);
foreach(BuildStep *originalbs, source->buildSteps()) {
foreach (BuildStep *originalbs, source->buildSteps()) {
IBuildStepFactory *factory(findCloneFactory(this, originalbs));
if (!factory)
continue;
......@@ -106,7 +106,7 @@ void BuildConfiguration::cloneSteps(BuildConfiguration *source)
if (clonebs)
m_buildSteps.append(clonebs);
}
foreach(BuildStep *originalcs, source->cleanSteps()) {
foreach (BuildStep *originalcs, source->cleanSteps()) {
IBuildStepFactory *factory = findCloneFactory(this, originalcs);
if (!factory)
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment