diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-01 12:12:00 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-01 12:12:00 +0100 |
commit | d9c2faa5cb92e1fdd609c92baf222a1c7992d343 (patch) | |
tree | 3ddbfbbefad749d8e1c96840f4a3050ce997e4d6 | |
parent | 3518d746ed4677f85385ca5eae78d68eeb81521e (diff) | |
download | sink-d9c2faa5cb92e1fdd609c92baf222a1c7992d343.tar.gz sink-d9c2faa5cb92e1fdd609c92baf222a1c7992d343.zip |
Fixed warnings
-rw-r--r-- | common/contactpreprocessor.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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 @@ | |||
24 | 24 | ||
25 | using namespace Sink; | 25 | using namespace Sink; |
26 | 26 | ||
27 | SINK_DEBUG_AREA("contactpreprocessor") | ||
28 | |||
29 | void updatedProperties(Sink::ApplicationDomain::Contact &contact, const KContacts::Addressee &addressee) | 27 | void updatedProperties(Sink::ApplicationDomain::Contact &contact, const KContacts::Addressee &addressee) |
30 | { | 28 | { |
31 | contact.setUid(addressee.uid()); | 29 | contact.setUid(addressee.uid()); |
32 | contact.setFn(addressee.formattedName()); | 30 | contact.setFn(addressee.formattedName()); |
33 | QByteArrayList emails; | 31 | QByteArrayList emails; |
34 | for (const auto email : addressee.emails()) { | 32 | for (const auto &email : addressee.emails()) { |
35 | emails << email.toUtf8(); | 33 | emails << email.toUtf8(); |
36 | } | 34 | } |
37 | contact.setEmails(emails); | 35 | contact.setEmails(emails); |