Fix MSVC64 warning about integer truncation in memcheck-tool.

Change-Id: Ic19b4ff112e3ac32d8dfb364f42ea7f523cfa2d1
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Friedemann Kleint
2013-10-10 11:21:57 +02:00
committed by hjk
parent 2f7f1d904c
commit ca603c2404

View File

@@ -430,7 +430,7 @@ void MemcheckErrorDelegate::copy()
void MemcheckErrorDelegate::openLinkInEditor(const QString &link)
{
const int pathStart = strlen("file://");
const int pathStart = int(sizeof("file://")) - 1;
const int pathEnd = link.lastIndexOf(QLatin1Char(':'));
const QString path = link.mid(pathStart, pathEnd - pathStart);
const int line = link.mid(pathEnd + 1).toInt(0);