summaryrefslogtreecommitdiff
path: root/src/libs/qmljs/qmljscheck.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2014-09-02 14:40:41 +0200
committerKai Koehne <kai.koehne@digia.com>2014-09-03 09:41:27 +0200
commit8f2532d333438acf00a0280db369487e9ebc2c20 (patch)
tree60ee5c4ed2c8aa572a182794cc61a3e6b4272f75 /src/libs/qmljs/qmljscheck.cpp
parent215dec23a4d1ca47d59eae220e43eea50491d54f (diff)
downloadqt-creator-8f2532d333438acf00a0280db369487e9ebc2c20.tar.gz
QmlJS: Don't use QDir::separator() for internal paths
We use forward slashes in all internal paths, even on Windows. Change-Id: Ie0b418c770dad96829dd357fe425616b6d3a5b82 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
Diffstat (limited to 'src/libs/qmljs/qmljscheck.cpp')
-rw-r--r--src/libs/qmljs/qmljscheck.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/qmljs/qmljscheck.cpp b/src/libs/qmljs/qmljscheck.cpp
index 18eef295ec..3584c9a851 100644
--- a/src/libs/qmljs/qmljscheck.cpp
+++ b/src/libs/qmljs/qmljscheck.cpp
@@ -123,7 +123,7 @@ public:
QString fileName = url.toLocalFile();
if (!fileName.isEmpty()) {
if (QFileInfo(fileName).isRelative()) {
- fileName.prepend(QDir::separator());
+ fileName.prepend(QLatin1Char('/'));
fileName.prepend(_doc->path());
}
if (!QFileInfo(fileName).exists())