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

Minor

parent dd9bfdce
Pipeline #24007 passed with stage
in 88 minutes and 51 seconds
......@@ -272,7 +272,8 @@ void MainTextJob::doStart()
MultipartJob *multipartJob = new MultipartJob;
multipartJob->setMultipartSubtype("related");
multipartJob->appendSubjob(alternativeJob);
foreach (const QSharedPointer<KPIMTextEdit::EmbeddedImage> &image, d->textPart->embeddedImages()) {
const auto embeddedImages = d->textPart->embeddedImages();
for (const QSharedPointer<KPIMTextEdit::EmbeddedImage> &image : embeddedImages) {
multipartJob->appendSubjob(d->createImageJob(image));
}
appendSubjob(multipartJob);
......
......@@ -274,7 +274,7 @@ void SignEncryptJob::process()
return;
}
QByteArray signatureHashAlgo = res.first.createdSignature(0).hashAlgorithmAsString();
const QByteArray signatureHashAlgo = res.first.createdSignature(0).hashAlgorithmAsString();
d->resultContent = MessageComposer::Util::composeHeadersAndBody(d->content, encBody, d->format, false, signatureHashAlgo);
......
......@@ -57,7 +57,7 @@ public:
bool protectedHeaders = true;
// copied from messagecomposer.cpp
bool binaryHint(Kleo::CryptoMessageFormat f)
Q_REQUIRED_RESULT bool binaryHint(Kleo::CryptoMessageFormat f)
{
switch (f) {
case Kleo::SMIMEFormat:
......@@ -70,7 +70,7 @@ public:
}
}
GpgME::SignatureMode signingMode(Kleo::CryptoMessageFormat f)
Q_REQUIRED_RESULT GpgME::SignatureMode signingMode(Kleo::CryptoMessageFormat f)
{
switch (f) {
case Kleo::SMIMEOpaqueFormat:
......
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