cvsutils: Fix build with gcc 5.3.

Change-Id: I9499b688a3fe42d0d67ea82f69b0ad3c39193384
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
Friedemann Kleint
2016-02-04 11:34:13 +01:00
parent b41346cf5b
commit 10e6181ccf

View File

@@ -232,7 +232,7 @@ QString previousRevision(const QString &rev)
if (dotPos == -1)
return rev;
const int minor = rev.midRef(dotPos + 1).toInt();
return rev.leftRef(dotPos + 1) + QString::number(minor - 1);
return rev.left(dotPos + 1) + QString::number(minor - 1);
}
// Is "[1.2...].1"?