From 47bda54f07776e227f66340015a1b7e1b1215949 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Sat, 15 Oct 2011 13:36:39 +0200 Subject: [PATCH] FileInProjectFinder: Avoid double slash in sysroot'ed path The file path from the device is already absolute, no need to add another slash. Change-Id: I591eb5ffee38bcea28564dcdc20541ee40f306a8 Reviewed-by: Christiaan Janssen --- src/libs/utils/fileinprojectfinder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/utils/fileinprojectfinder.cpp b/src/libs/utils/fileinprojectfinder.cpp index 137939d43f..f98bbfb0e9 100644 --- a/src/libs/utils/fileinprojectfinder.cpp +++ b/src/libs/utils/fileinprojectfinder.cpp @@ -192,7 +192,7 @@ QString FileInProjectFinder::findFile(const QUrl &fileUrl, bool *success) const // check if absolute path is found in sysroot if (!m_sysroot.isEmpty()) { - const QString sysrootPath = m_sysroot + QLatin1Char('/') + originalPath; + const QString sysrootPath = m_sysroot + originalPath; if (QFileInfo(sysrootPath).exists() && QFileInfo(sysrootPath).isFile()) { if (success) *success = true; -- 2.11.0