Commit aac877c1 authored by Laurent Montel's avatar Laurent Montel 😁

Add const'ref

parent 9b493860
......@@ -648,7 +648,7 @@ QList< MessageComposer::Composer * > ComposerViewBase::generateCryptoMessages(bo
}
if (m_attachmentModel) {
foreach (MessageCore::AttachmentPart::Ptr attachment, m_attachmentModel->attachments()) {
foreach (const MessageCore::AttachmentPart::Ptr &attachment, m_attachmentModel->attachments()) {
if (attachment->isSigned()) {
signSomething = true;
} else {
......
......@@ -20,6 +20,7 @@
#include "messagecomposer_debug.h"
#include "settings/messagecomposersettings.h"
#include "composer/keyresolver.h"
#include <KLocalizedString>
using namespace MessageComposer;
......@@ -163,7 +164,7 @@ QList< MessageComposer::Composer * > ComposerViewBase::generateCryptoMessages(bo
}
if (m_attachmentModel) {
foreach (MessageCore::AttachmentPart::Ptr attachment, m_attachmentModel->attachments()) {
foreach (const MessageCore::AttachmentPart::Ptr &attachment, m_attachmentModel->attachments()) {
if (attachment->isSigned()) {
signSomething = true;
} else {
......
......@@ -29,8 +29,9 @@ class GenerateCryptoMessagesJob : public QObject
public:
explicit GenerateCryptoMessagesJob(QObject *parent = nullptr);
~GenerateCryptoMessagesJob();
private:
Q_SIGNALS:
void failed(const QString &msg);
};
}
......
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