Replace remaining multi-args

This commit is contained in:
Ilya Fedin 2021-03-13 23:05:58 +04:00 committed by John Preston
parent 508762cd2c
commit 12e306dd7b
3 changed files with 10 additions and 10 deletions

View file

@ -557,10 +557,10 @@ void Updates::feedDifference(
} }
void Updates::differenceFail(const MTP::Error &error) { void Updates::differenceFail(const MTP::Error &error) {
LOG(("RPC Error in getDifference: %1 %2: %3" LOG(("RPC Error in getDifference: %1 %2: %3").arg(
).arg(error.code() QString::number(error.code()),
).arg(error.type() error.type(),
).arg(error.description())); error.description()));
failDifferenceStartTimerFor(nullptr); failDifferenceStartTimerFor(nullptr);
} }

View file

@ -61,9 +61,9 @@ void Launcher::initHook() {
appimagePath.size(), appimagePath.size(),
md5Hash); md5Hash);
return qsl("appimagekit_%1-%2.desktop") return qsl("appimagekit_%1-%2.desktop").arg(
.arg(md5Hash) md5Hash,
.arg(AppName.utf16().replace(' ', '_')); AppName.utf16().replace(' ', '_'));
} }
return qsl(MACRO_TO_STRING(TDESKTOP_LAUNCHER_BASENAME) ".desktop"); return qsl(MACRO_TO_STRING(TDESKTOP_LAUNCHER_BASENAME) ".desktop");

View file

@ -387,9 +387,9 @@ QString FormatUpdateNotification(const QString &path, const Delta &delta) {
if (!delta.changed.empty()) { if (!delta.changed.empty()) {
result += qstr("-------- Modified --------\n\n"); result += qstr("-------- Modified --------\n\n");
for (const auto question : delta.changed) { for (const auto question : delta.changed) {
result += qsl("Q: %1\nA: %2\n\n" result += qsl("Q: %1\nA: %2\n\n").arg(
).arg(question->question question->question,
).arg(question->value.trimmed()); question->value.trimmed());
} }
} }
if (!delta.removed.empty()) { if (!delta.removed.empty()) {