Commit 5dabe045 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port foreach

parent c48f13ad
Pipeline #24584 passed with stage
in 57 minutes and 10 seconds
...@@ -668,7 +668,8 @@ QVector< MessageComposer::Composer * > ComposerViewBase::generateCryptoMessages( ...@@ -668,7 +668,8 @@ QVector< MessageComposer::Composer * > ComposerViewBase::generateCryptoMessages(
} }
if (m_attachmentModel) { if (m_attachmentModel) {
foreach (const MessageCore::AttachmentPart::Ptr &attachment, m_attachmentModel->attachments()) { const auto attachments = m_attachmentModel->attachments();
for (const MessageCore::AttachmentPart::Ptr &attachment : attachments) {
if (attachment->isSigned()) { if (attachment->isSigned()) {
signSomething = true; signSomething = true;
} else { } else {
......
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