forked from qt-creator/qt-creator
Valgrind: Do not use native separators at all
Since valgrind only runs on POSIX systems, all the paths it produces are normalized. We have no mapping to local directory, so having a path like \home\user\project\file.cpp is confusing. Change-Id: Idff339729231ab662aa4fcb6bb732058c1a04f7c Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -109,7 +109,9 @@ static QString makeFrameName(const Frame &frame, const QString &relativeTo,
|
||||
if (frame.line() != -1)
|
||||
path += QLatin1Char(':') + QString::number(frame.line());
|
||||
|
||||
path = QDir::toNativeSeparators(path.toHtmlEscaped());
|
||||
// Since valgrind only runs on POSIX systems, converting path separators
|
||||
// will ruin the paths on Windows. Leave it untouched.
|
||||
path = path.toHtmlEscaped();
|
||||
|
||||
if (link && !f.isEmpty() && QFile::exists(fullPath)) {
|
||||
// make a hyperlink label
|
||||
|
||||
Reference in New Issue
Block a user