From d9c2faa5cb92e1fdd609c92baf222a1c7992d343 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 1 Feb 2017 12:12:00 +0100 Subject: Fixed warnings --- common/contactpreprocessor.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'common/contactpreprocessor.cpp') diff --git a/common/contactpreprocessor.cpp b/common/contactpreprocessor.cpp index fbf5e2c..0f2ca17 100644 --- a/common/contactpreprocessor.cpp +++ b/common/contactpreprocessor.cpp @@ -24,14 +24,12 @@ using namespace Sink; -SINK_DEBUG_AREA("contactpreprocessor") - void updatedProperties(Sink::ApplicationDomain::Contact &contact, const KContacts::Addressee &addressee) { contact.setUid(addressee.uid()); contact.setFn(addressee.formattedName()); QByteArrayList emails; - for (const auto email : addressee.emails()) { + for (const auto &email : addressee.emails()) { emails << email.toUtf8(); } contact.setEmails(emails); -- cgit v1.2.3