summaryrefslogtreecommitdiffstats
path: root/src/core/browser_context_adapter.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2014-12-15 12:21:17 +0100
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-01-07 13:40:18 +0100
commitdaaa7a9c208671b7b450cf292569fa2f486850fe (patch)
tree4fab68c549f94655496d3e9ac3b740e7f5285784 /src/core/browser_context_adapter.cpp
parent54e05945b0ec4328b9d56b3b6a9886fc24ad3e6a (diff)
Do not use QDir::separator()
Build all paths Qt-style using / separators, and only convert it when converted to Chromium types. Change-Id: I181be6edb903f38e1772bcd324972d1d4e6672fc Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com>
Diffstat (limited to 'src/core/browser_context_adapter.cpp')
-rw-r--r--src/core/browser_context_adapter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/browser_context_adapter.cpp b/src/core/browser_context_adapter.cpp
index 133dd688a..edf1d2dbc 100644
--- a/src/core/browser_context_adapter.cpp
+++ b/src/core/browser_context_adapter.cpp
@@ -54,9 +54,9 @@ namespace {
inline QString buildLocationFromStandardPath(const QString &standardPath, const QString &name) {
QString location = standardPath;
if (location.isEmpty())
- location = QDir::homePath() % QDir::separator() % QChar::fromLatin1('.') % QCoreApplication::applicationName();
+ location = QDir::homePath() % QLatin1String("/.") % QCoreApplication::applicationName();
- location.append(QDir::separator() % QLatin1String("QtWebEngine") % QDir::separator() % name);
+ location.append(QLatin1String("/QtWebEngine/") % name);
return location;
}
}
@@ -170,7 +170,7 @@ QString BrowserContextAdapter::cookiesPath() const
return QString();
QString basePath = dataPath();
if (!basePath.isEmpty())
- return basePath % QDir::separator() % QLatin1String("Coookies");
+ return basePath % QLatin1String("/Coookies");
return QString();
}
@@ -180,7 +180,7 @@ QString BrowserContextAdapter::httpCachePath() const
return QString();
QString basePath = cachePath();
if (!basePath.isEmpty())
- return basePath % QDir::separator() % QLatin1String("Cache");
+ return basePath % QLatin1String("/Cache");
return QString();
}