summaryrefslogtreecommitdiffstats
path: root/src/core/browser_context_adapter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/browser_context_adapter.cpp')
-rw-r--r--src/core/browser_context_adapter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/browser_context_adapter.cpp b/src/core/browser_context_adapter.cpp
index 0bbb13857..b9d439596 100644
--- a/src/core/browser_context_adapter.cpp
+++ b/src/core/browser_context_adapter.cpp
@@ -406,7 +406,7 @@ QString BrowserContextAdapter::httpAcceptLanguageWithoutQualities() const
{
const QStringList list = m_httpAcceptLanguage.split(QLatin1Char(','));
return std::accumulate(list.constBegin(), list.constEnd(), QString(),
- [](const QString &r, const QString &e) {
+ [](const QString &r, const QString &e) -> QString {
return (r.isEmpty() ? r : r + QString(QLatin1Char(',')))
+ e.split(QLatin1Char(';')).first();
});