summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-14 06:46:58 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-14 06:46:58 (GMT)
commit43728e53dc29607b7dc6661352ce92b3064c59c2 (patch)
tree06be98dc6447225ea0880a0f8bb46e07c9f79feb
parent3aec6cd91a7bb28d73674bd56b90751a2f08fe21 (diff)
Use const_ref
-rw-r--r--messagecomposer/src/composer/composer.cpp4
-rw-r--r--messagecomposer/src/job/attachmentvcardfromaddressbookjob.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/messagecomposer/src/composer/composer.cpp b/messagecomposer/src/composer/composer.cpp
index f82bcfe..f20bdaf 100644
--- a/messagecomposer/src/composer/composer.cpp
+++ b/messagecomposer/src/composer/composer.cpp
@@ -69,7 +69,7 @@ public:
void composeStep2();
QList<ContentJobBase *> createEncryptJobs(ContentJobBase *contentJob, bool sign);
void contentJobFinished(KJob *job); // slot
- void composeWithLateAttachments(KMime::Message *headers, KMime::Content *content, AttachmentPart::List parts, std::vector<GpgME::Key> keys, QStringList recipients);
+ void composeWithLateAttachments(KMime::Message *headers, KMime::Content *content, AttachmentPart::List parts, std::vector<GpgME::Key> keys, const QStringList &recipients);
void attachmentsFinished(KJob *job); // slot
void composeFinalStep(KMime::Content *headers, KMime::Content *content);
@@ -362,7 +362,7 @@ void ComposerPrivate::contentJobFinished(KJob *job)
}
-void ComposerPrivate::composeWithLateAttachments(KMime::Message *headers, KMime::Content *content, AttachmentPart::List parts, std::vector<GpgME::Key> keys, QStringList recipients)
+void ComposerPrivate::composeWithLateAttachments(KMime::Message *headers, KMime::Content *content, AttachmentPart::List parts, std::vector<GpgME::Key> keys, const QStringList &recipients)
{
Q_Q(Composer);
diff --git a/messagecomposer/src/job/attachmentvcardfromaddressbookjob.cpp b/messagecomposer/src/job/attachmentvcardfromaddressbookjob.cpp
index e3c3d67..46f4a86 100644
--- a/messagecomposer/src/job/attachmentvcardfromaddressbookjob.cpp
+++ b/messagecomposer/src/job/attachmentvcardfromaddressbookjob.cpp
@@ -27,7 +27,7 @@ using namespace MessageComposer;
class MessageComposer::AttachmentVcardFromAddressBookJobPrivate
{
public:
- AttachmentVcardFromAddressBookJobPrivate(Akonadi::Item item)
+ AttachmentVcardFromAddressBookJobPrivate(const Akonadi::Item &item)
: mItem(item)
{