Commit bbdc8b58 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix some clazy warning

parent 009a3bb3
......@@ -33,7 +33,8 @@ int main(int argc, char **argv)
parser.process(app);
if (!parser.positionalArguments().isEmpty()) {
for (const QString &str : parser.positionalArguments()) {
const QStringList lst = parser.positionalArguments();
for (const QString &str : lst) {
LookUpKey *d = new LookUpKey();
d->lookUpServer(str);
}
......
......@@ -153,8 +153,7 @@ QString MessagePart::makeLink(const QString &path) const
return {};
}
return QStringLiteral("x-kmail:/bodypart/%1/%2/%3")
.arg(serial++).arg(content()->index().toString())
.arg(QString::fromLatin1(QUrl::toPercentEncoding(path, "/")));
.arg(serial++).arg(content()->index().toString(), QString::fromLatin1(QUrl::toPercentEncoding(path, "/")));
}
void MessagePart::setIsRoot(bool root)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment