summaryrefslogtreecommitdiff
path: root/src/plugins/vcsbase/vcsbaseeditorparameterwidget.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2015-01-22 13:54:05 +0100
committerTobias Hunger <tobias.hunger@theqtcompany.com>2015-01-22 14:19:24 +0100
commite29a49ca246c0ad20fd44d028509a5de838b981b (patch)
tree17ee637345debe317f22ed6841cfd221550aab09 /src/plugins/vcsbase/vcsbaseeditorparameterwidget.cpp
parent853883984797b4219d6c744125ffa8ccee2d0708 (diff)
downloadqt-creator-e29a49ca246c0ad20fd44d028509a5de838b981b.tar.gz
VcsBase: Sprinkle with auto
Change-Id: Icd1e1ec16b1ff918162d3c6f564348d47177ffc7 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/vcsbase/vcsbaseeditorparameterwidget.cpp')
-rw-r--r--src/plugins/vcsbase/vcsbaseeditorparameterwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/vcsbase/vcsbaseeditorparameterwidget.cpp b/src/plugins/vcsbase/vcsbaseeditorparameterwidget.cpp
index 46cf0d61f8..fab9d15919 100644
--- a/src/plugins/vcsbase/vcsbaseeditorparameterwidget.cpp
+++ b/src/plugins/vcsbase/vcsbaseeditorparameterwidget.cpp
@@ -155,7 +155,7 @@ QToolButton *VcsBaseEditorParameterWidget::addToggleButton(const QString &option
QToolButton *VcsBaseEditorParameterWidget::addToggleButton(const QStringList &options, const QString &label, const QString &tooltip)
{
- QToolButton *tb = new QToolButton;
+ auto tb = new QToolButton;
tb->setText(label);
tb->setToolTip(tooltip);
tb->setCheckable(true);
@@ -168,7 +168,7 @@ QToolButton *VcsBaseEditorParameterWidget::addToggleButton(const QStringList &op
QComboBox *VcsBaseEditorParameterWidget::addComboBox(const QStringList &options,
const QList<ComboBoxItem> &items)
{
- QComboBox *cb = new QComboBox;
+ auto cb = new QComboBox;
foreach (const ComboBoxItem &item, items)
cb->addItem(item.displayText, item.value);
connect(cb, SIGNAL(currentIndexChanged(int)), this, SIGNAL(argumentsChanged()));