aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/git/gitsubmiteditorwidget.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2015-01-22 13:52:48 +0100
committerTobias Hunger <tobias.hunger@theqtcompany.com>2015-01-22 14:19:09 +0100
commit03c9b935de0885656ca23cb448187db0fbeda453 (patch)
treef0298af3e6e803bee67a79950de6a9e6dcbc00a2 /src/plugins/git/gitsubmiteditorwidget.cpp
parentb0a4921b5b20771694a7c7eceaf74da02e411875 (diff)
Git: Sprinkle with auto
Change-Id: I13886e17ee49702a69450e0f0b7d161cdfed1385 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/git/gitsubmiteditorwidget.cpp')
-rw-r--r--src/plugins/git/gitsubmiteditorwidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/git/gitsubmiteditorwidget.cpp b/src/plugins/git/gitsubmiteditorwidget.cpp
index 0cfff5ec28..88335a121b 100644
--- a/src/plugins/git/gitsubmiteditorwidget.cpp
+++ b/src/plugins/git/gitsubmiteditorwidget.cpp
@@ -94,8 +94,8 @@ void GitSubmitEditorWidget::initialize(CommitType commitType,
return;
m_isInitialized = true;
if (commitType == FixupCommit) {
- QGroupBox *logChangeGroupBox = new QGroupBox(tr("Select Change"));
- QVBoxLayout *logChangeLayout = new QVBoxLayout;
+ auto logChangeGroupBox = new QGroupBox(tr("Select Change"));
+ auto logChangeLayout = new QVBoxLayout;
logChangeGroupBox->setLayout(logChangeLayout);
m_logChangeWidget = new LogChangeWidget;
m_logChangeWidget->init(repository);
@@ -110,7 +110,7 @@ void GitSubmitEditorWidget::initialize(CommitType commitType,
setPanelInfo(info);
if (enablePush) {
- QMenu *menu = new QMenu(this);
+ auto menu = new QMenu(this);
menu->addAction(tr("&Commit only"), this, SLOT(commitOnlySlot()));
menu->addAction(tr("Commit and &Push"), this, SLOT(commitAndPushSlot()));
menu->addAction(tr("Commit and Push to &Gerrit"), this, SLOT(commitAndPushToGerritSlot()));