summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-11-18 13:34:07 +0100
committerMontel Laurent <[email protected]>2015-11-18 13:34:07 +0100
commitb3e74c7f78744a268ecce58c5a8300f2cf187257 (patch)
tree2905e721379144908319f4f89fa952955edf5629
parentd72e5f8361e2bad185b7621f24a526551429bd0e (diff)
Clazy++
-rw-r--r--composereditor-ng/src/private/composerview_p.cpp2
-rw-r--r--eventviews/src/agenda/agenda.cpp2
-rw-r--r--importwizard/autodetect/evolutionv3/evolutionaddressbook.cpp2
-rw-r--r--korganizer/kontactplugin/korganizer/summaryeventinfo.cpp2
-rw-r--r--libksieve/src/ksieveui/autocreatescripts/sieveactions/sieveactionextracttext.cpp2
-rw-r--r--libksieve/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionbody.cpp2
-rw-r--r--libksieve/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionheader.cpp2
-rw-r--r--libksieve/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionspamtest.cpp2
-rw-r--r--pimsettingexporter/core/mail/exportmailjob.cpp2
9 files changed, 9 insertions, 9 deletions
diff --git a/composereditor-ng/src/private/composerview_p.cpp b/composereditor-ng/src/private/composerview_p.cpp
index 688c80a..89bda8b 100644
--- a/composereditor-ng/src/private/composerview_p.cpp
+++ b/composereditor-ng/src/private/composerview_p.cpp
@@ -890,7 +890,7 @@ void ComposerViewPrivate::execCommand(const QString &cmd)
void ComposerViewPrivate::execCommand(const QString &cmd, const QString &arg)
{
QWebFrame *frame = q->page()->mainFrame();
- const QString js = QStringLiteral("document.execCommand(\"%1\", false, \"%2\")").arg(cmd).arg(arg);
+ const QString js = QStringLiteral("document.execCommand(\"%1\", false, \"%2\")").arg(cmd, arg);
frame->evaluateJavaScript(js);
}
diff --git a/eventviews/src/agenda/agenda.cpp b/eventviews/src/agenda/agenda.cpp
index 1830908..c2d30f1 100644
--- a/eventviews/src/agenda/agenda.cpp
+++ b/eventviews/src/agenda/agenda.cpp
@@ -1859,7 +1859,7 @@ void Agenda::insertMultiItem(const KCalCore::Incidence::Ptr &event, const KDateT
} else {
cellYBottom = rows() - 1;
}
- newtext = QStringLiteral("(%1/%2): ").arg(count).arg(width);
+ newtext = QStringLiteral("(%1/%2): ").arg(count, width);
newtext.append(ev->summary());
current = insertItem(event, recurrenceId, cellX, cellYTop, cellYBottom, count, width, isSelected);
diff --git a/importwizard/autodetect/evolutionv3/evolutionaddressbook.cpp b/importwizard/autodetect/evolutionv3/evolutionaddressbook.cpp
index f79209b..ec6f964 100644
--- a/importwizard/autodetect/evolutionv3/evolutionaddressbook.cpp
+++ b/importwizard/autodetect/evolutionv3/evolutionaddressbook.cpp
@@ -86,7 +86,7 @@ void EvolutionAddressBook::exportEvolutionAddressBook()
case 2:
if (!displayname.isEmpty() && !name.isEmpty()) {
arguments.clear();
- arguments << QStringLiteral("--format=vcard") << name << QStringLiteral("--output=%1/%2.vcard").arg(directory).arg(displayname);
+ arguments << QStringLiteral("--format=vcard") << name << QStringLiteral("--output=%1/%2.vcard").arg(directory, displayname);
proc.start(evolutionFile.fileName(), arguments);
if (proc.waitForFinished()) {
addAddressBookImportInfo(i18n("Address book \"%1\" exported.", displayname));
diff --git a/korganizer/kontactplugin/korganizer/summaryeventinfo.cpp b/korganizer/kontactplugin/korganizer/summaryeventinfo.cpp
index 6c932d7..99cd1c1 100644
--- a/korganizer/kontactplugin/korganizer/summaryeventinfo.cpp
+++ b/korganizer/kontactplugin/korganizer/summaryeventinfo.cpp
@@ -266,7 +266,7 @@ SummaryEventInfo::List SummaryEventInfo::eventsForRange(const QDate &start, cons
// Summary label
str = ev->richSummary();
if (ev->isMultiDay() && !ev->allDay()) {
- str.append(QStringLiteral(" (%1/%2)").arg(dayof).arg(span));
+ str.append(QStringLiteral(" (%1/%2)").arg(dayof, span));
}
summaryEvent->summaryText = str;
summaryEvent->summaryUrl = ev->uid();
diff --git a/libksieve/src/ksieveui/autocreatescripts/sieveactions/sieveactionextracttext.cpp b/libksieve/src/ksieveui/autocreatescripts/sieveactions/sieveactionextracttext.cpp
index 3e74e0c..86111af 100644
--- a/libksieve/src/ksieveui/autocreatescripts/sieveactions/sieveactionextracttext.cpp
+++ b/libksieve/src/ksieveui/autocreatescripts/sieveactions/sieveactionextracttext.cpp
@@ -103,7 +103,7 @@ QString SieveActionExtractText::code(QWidget *w) const
const QLineEdit *variableName = w->findChild<QLineEdit *>(QStringLiteral("variablename"));
const QString variableNameStr = variableName->text();
- const QString result = QStringLiteral("extracttext :first %1 \"%2\";").arg(numberOfCharactersStr).arg(variableNameStr);
+ const QString result = QStringLiteral("extracttext :first %1 \"%2\";").arg(numberOfCharactersStr, variableNameStr);
return result;
}
diff --git a/libksieve/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionbody.cpp b/libksieve/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionbody.cpp
index 01f5eb2..2cc04ac 100644
--- a/libksieve/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionbody.cpp
+++ b/libksieve/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionbody.cpp
@@ -75,7 +75,7 @@ QString SieveConditionBody::code(QWidget *w) const
QLineEdit *edit = w->findChild<QLineEdit *>(QStringLiteral("edit"));
const QString editValue = edit->text();
- return AutoCreateScriptUtil::negativeString(isNegative) + QStringLiteral("body %1 %2 \"%3\"").arg(bodyValue).arg(matchValue).arg(editValue);
+ return AutoCreateScriptUtil::negativeString(isNegative) + QStringLiteral("body %1 %2 \"%3\"").arg(bodyValue, matchValue, editValue);
}
QStringList SieveConditionBody::needRequires(QWidget *) const
diff --git a/libksieve/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionheader.cpp b/libksieve/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionheader.cpp
index f8d7e74..b289a7b 100644
--- a/libksieve/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionheader.cpp
+++ b/libksieve/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionheader.cpp
@@ -83,7 +83,7 @@ QString SieveConditionHeader::code(QWidget *w) const
QString valueStr = value->text();
valueStr = AutoCreateScriptUtil::fixListValue(valueStr);
- return AutoCreateScriptUtil::negativeString(isNegative) + QStringLiteral("header %1 %2 %3").arg(matchString).arg(headerStr).arg(valueStr);
+ return AutoCreateScriptUtil::negativeString(isNegative) + QStringLiteral("header %1 %2 %3").arg(matchString, headerStr, valueStr);
}
QString SieveConditionHeader::help() const
diff --git a/libksieve/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionspamtest.cpp b/libksieve/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionspamtest.cpp
index 5a33703..e7d8c88 100644
--- a/libksieve/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionspamtest.cpp
+++ b/libksieve/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionspamtest.cpp
@@ -93,7 +93,7 @@ QString SieveConditionSpamTest::code(QWidget *w) const
const QSpinBox *spinbox = w->findChild<QSpinBox *>(QStringLiteral("value"));
const QString value = QString::number(spinbox->value());
- return QStringLiteral("spamtest %1 %2 %3 \"%4\"").arg(percentStr).arg(relationStr).arg(comparatorStr).arg(value);
+ return QStringLiteral("spamtest %1 %2 %3 \"%4\"").arg(percentStr, relationStr, comparatorStr, value);
}
bool SieveConditionSpamTest::needCheckIfServerHasCapability() const
diff --git a/pimsettingexporter/core/mail/exportmailjob.cpp b/pimsettingexporter/core/mail/exportmailjob.cpp
index cac652e..118ffac 100644
--- a/pimsettingexporter/core/mail/exportmailjob.cpp
+++ b/pimsettingexporter/core/mail/exportmailjob.cpp
@@ -478,7 +478,7 @@ void ExportMailJob::backupConfig()
if (found) {
const QString realPath = MailCommon::Util::fullCollectionPath(Akonadi::Collection(collectionId));
if (!realPath.isEmpty()) {
- storageGroup.writeEntry(QStringLiteral("%1%2").arg(storageModelSelectedPattern).arg(realPath), oldValue);
+ storageGroup.writeEntry(QStringLiteral("%1%2").arg(storageModelSelectedPattern, realPath), oldValue);
storageGroup.deleteEntry(str);
}
}