Commit 10e6181c authored by Friedemann Kleint's avatar Friedemann Kleint

cvsutils: Fix build with gcc 5.3.

Change-Id: I9499b688a3fe42d0d67ea82f69b0ad3c39193384
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
parent b41346cf
......@@ -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"?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment