forked from qt-creator/qt-creator
Fix MSVC64 warning about integer truncation in memcheck-tool.
Change-Id: Ic19b4ff112e3ac32d8dfb364f42ea7f523cfa2d1 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -430,7 +430,7 @@ void MemcheckErrorDelegate::copy()
|
|||||||
|
|
||||||
void MemcheckErrorDelegate::openLinkInEditor(const QString &link)
|
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 int pathEnd = link.lastIndexOf(QLatin1Char(':'));
|
||||||
const QString path = link.mid(pathStart, pathEnd - pathStart);
|
const QString path = link.mid(pathStart, pathEnd - pathStart);
|
||||||
const int line = link.mid(pathEnd + 1).toInt(0);
|
const int line = link.mid(pathEnd + 1).toInt(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user