forked from qt-creator/qt-creator
cvsutils: Fix build with gcc 5.3.
Change-Id: I9499b688a3fe42d0d67ea82f69b0ad3c39193384 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -232,7 +232,7 @@ QString previousRevision(const QString &rev)
|
|||||||
if (dotPos == -1)
|
if (dotPos == -1)
|
||||||
return rev;
|
return rev;
|
||||||
const int minor = rev.midRef(dotPos + 1).toInt();
|
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"?
|
// Is "[1.2...].1"?
|
||||||
|
|||||||
Reference in New Issue
Block a user