forked from qt-creator/qt-creator
VcsBase & dependent: Fix const correctness
And some minor cleanups. Change-Id: Id0c2df6865ba84c054f0fb97c0ac42a76a128355 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -448,7 +448,7 @@ bool BranchView::remove()
|
||||
const QModelIndex selected = selectedIndex();
|
||||
QTC_CHECK(selected != m_model->currentBranch());
|
||||
|
||||
QString branchName = m_model->fullName(selected);
|
||||
const QString branchName = m_model->fullName(selected);
|
||||
if (branchName.isEmpty())
|
||||
return false;
|
||||
|
||||
@@ -480,7 +480,7 @@ bool BranchView::rename()
|
||||
const bool isTag = m_model->isTag(selected);
|
||||
QTC_CHECK(m_model->isLocal(selected) || isTag);
|
||||
|
||||
QString oldName = m_model->fullName(selected);
|
||||
const QString oldName = m_model->fullName(selected);
|
||||
QStringList localNames;
|
||||
if (!isTag)
|
||||
localNames = m_model->localBranchNames();
|
||||
|
||||
Reference in New Issue
Block a user