aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGordan Markuš <gordan.markus@pelagicore.com>2017-05-09 10:39:35 +0200
committerGordan Markus <gordan.markus@pelagicore.com>2017-05-09 10:40:45 +0000
commit1b7ff4d6eef02412580ec0214b59529277e0778d (patch)
treec4b5ce40204f9f517243feb8f1984929a3e59b32
parent36b039638fdc8dd9f2eab18bc7096f6b76cf3114 (diff)
Hunspell: Fix chained QString::arg() calls
Use multi-arg overload instead of chained QString::arg() calls. Change-Id: Idd279664e66655dfbc4f3f31bbf705ee6e387724 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r--src/virtualkeyboard/hunspellworker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/virtualkeyboard/hunspellworker.cpp b/src/virtualkeyboard/hunspellworker.cpp
index d197f465..a786a409 100644
--- a/src/virtualkeyboard/hunspellworker.cpp
+++ b/src/virtualkeyboard/hunspellworker.cpp
@@ -79,9 +79,9 @@ void HunspellLoadDictionaryTask::run()
QString affPath;
QString dicPath;
for (const QString &searchPath : searchPaths) {
- affPath = QStringLiteral("%1/%2.aff").arg(searchPath).arg(locale);
+ affPath = QStringLiteral("%1/%2.aff").arg(searchPath, locale);
if (QFileInfo::exists(affPath)) {
- dicPath = QStringLiteral("%1/%2.dic").arg(searchPath).arg(locale);
+ dicPath = QStringLiteral("%1/%2.dic").arg(searchPath, locale);
if (QFileInfo::exists(dicPath))
break;
dicPath.clear();