From: Oswald Buddenhagen Date: Mon, 25 Feb 2013 19:08:23 +0000 (+0100) Subject: clean paths of found files in prepareProject() X-Git-Tag: accepted/tizen/20131212.181521~101^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d8be960ab3feee8653e9c586dc92a353338a4fe;p=platform%2Fupstream%2Fqttools.git clean paths of found files in prepareProject() any of the directories may be the root, which would lead to double slashes in the constructed filenames. Change-Id: I053e167a19b795b40e780fc29db356c7f24d286a Reviewed-by: Joerg Bornemann (cherry picked from qtbase/97be79012cd39d1d0e7748d5c500d86c3becc258) --- diff --git a/src/linguist/shared/qmakeevaluator.cpp b/src/linguist/shared/qmakeevaluator.cpp index ef86f00..404974c 100644 --- a/src/linguist/shared/qmakeevaluator.cpp +++ b/src/linguist/shared/qmakeevaluator.cpp @@ -1062,7 +1062,7 @@ bool QMakeEvaluator::prepareProject(const QString &inDir) forever { QString superfile = superdir + QLatin1String("/.qmake.super"); if (IoUtils::exists(superfile)) { - m_superfile = superfile; + m_superfile = QDir::cleanPath(superfile); break; } QFileInfo qdfi(superdir); @@ -1099,8 +1099,8 @@ bool QMakeEvaluator::prepareProject(const QString &inDir) } else { m_buildRoot = QFileInfo(cachefile).path(); } - m_conffile = conffile; - m_cachefile = cachefile; + m_conffile = QDir::cleanPath(conffile); + m_cachefile = QDir::cleanPath(cachefile); } no_cache: