Git: BranchDialog: constify local variable

Change-Id: I3c7d1fe63471127cd2d4b344d2341ccf6c3c93c0
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Andre Hartmann
2017-02-08 22:42:03 +01:00
committed by André Hartmann
parent 196dbbe0e7
commit fd8ee7f044

View File

@@ -172,8 +172,7 @@ void BranchDialog::add()
QString suggestedName; QString suggestedName;
if (!isTag) { if (!isTag) {
QString suggestedNameBase; const QString suggestedNameBase = trackedBranch.mid(trackedBranch.lastIndexOf('/') + 1);
suggestedNameBase = trackedBranch.mid(trackedBranch.lastIndexOf('/') + 1);
suggestedName = suggestedNameBase; suggestedName = suggestedNameBase;
int i = 2; int i = 2;
while (localNames.contains(suggestedName)) { while (localNames.contains(suggestedName)) {