summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-05-30 21:25:15 +0200
committerMontel Laurent <[email protected]>2017-05-30 21:25:15 +0200
commit8d88c9ec484dcafd60c968caab439e0e214fb5a9 (patch)
tree79c0cd8aab9c5d213015d7a820ae01f7e9a01462
parentaac877c1b596d5fb5e49857a19f44857bb30cc05 (diff)
Use const'ref
-rw-r--r--messagecomposer/src/composer/composerviewbase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/messagecomposer/src/composer/composerviewbase.cpp b/messagecomposer/src/composer/composerviewbase.cpp
index b83514f..96cb818 100644
--- a/messagecomposer/src/composer/composerviewbase.cpp
+++ b/messagecomposer/src/composer/composerviewbase.cpp
@@ -144,7 +144,7 @@ bool ComposerViewBase::isComposing() const
void ComposerViewBase::setMessage(const KMime::Message::Ptr &msg, bool allowDecryption)
{
if (m_attachmentModel) {
- foreach (MessageCore::AttachmentPart::Ptr attachment, m_attachmentModel->attachments()) {
+ foreach (const MessageCore::AttachmentPart::Ptr &attachment, m_attachmentModel->attachments()) {
m_attachmentModel->removeAttachment(attachment);
}
}