Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 261b7185 authored by Laurent Montel's avatar Laurent Montel 😁

Warning--

parent 54c5d9ef
......@@ -187,7 +187,7 @@ Akonadi::Item KolabHelpers::translateFromImap(Kolab::FolderType folderType, cons
KContacts::ContactGroup contactGroup = reader.getDistlist();
QList<KContacts::ContactGroup::ContactReference> toAdd;
for (uint index = 0; index < contactGroup.contactReferenceCount(); ++index) {
for (int index = 0; index < contactGroup.contactReferenceCount(); ++index) {
const KContacts::ContactGroup::ContactReference &reference = contactGroup.contactReference(index);
KContacts::ContactGroup::ContactReference ref;
ref.setGid(reference.uid()); //libkolab set a gid with setUid()
......@@ -234,7 +234,7 @@ Akonadi::Item::List KolabHelpers::translateToImap(const Akonadi::Item::List &ite
static KContacts::ContactGroup convertToGidOnly(const KContacts::ContactGroup &contactGroup)
{
QList<KContacts::ContactGroup::ContactReference> toAdd;
for (uint index = 0; index < contactGroup.contactReferenceCount(); ++index) {
for (int index = 0; index < contactGroup.contactReferenceCount(); ++index) {
const KContacts::ContactGroup::ContactReference &reference = contactGroup.contactReference(index);
QString gid;
if (!reference.gid().isEmpty()) {
......
......@@ -873,11 +873,11 @@ DistList fromKABC(const KContacts::ContactGroup &cg)
dl.setUid(toStdString(cg.id()));
std::vector <Kolab::ContactReference > members;
for (unsigned int i = 0; i < cg.dataCount(); i++) {
for (int i = 0; i < cg.dataCount(); i++) {
const KContacts::ContactGroup::Data &data = cg.data(i);
members.push_back(Kolab::ContactReference(Kolab::ContactReference::EmailReference, toStdString(data.email()), toStdString(data.name())));
}
for (unsigned int i = 0; i < cg.contactReferenceCount(); i++) {
for (int i = 0; i < cg.contactReferenceCount(); i++) {
const KContacts::ContactGroup::ContactReference &ref = cg.contactReference(i);
members.push_back(Kolab::ContactReference(Kolab::ContactReference::UidReference, toStdString(ref.uid())));
}
......
......@@ -196,7 +196,7 @@ void DistributionList::setFields(const KContacts::ContactGroup *contactGroup)
setName(contactGroup->name());
// explicit contact data
for (uint index = 0; index < contactGroup->dataCount(); ++index) {
for (int index = 0; index < contactGroup->dataCount(); ++index) {
const KContacts::ContactGroup::Data &data = contactGroup->data(index);
Member m;
......@@ -205,7 +205,7 @@ void DistributionList::setFields(const KContacts::ContactGroup *contactGroup)
mDistrListMembers.append(m);
}
for (uint index = 0; index < contactGroup->contactReferenceCount(); ++index) {
for (int index = 0; index < contactGroup->contactReferenceCount(); ++index) {
const KContacts::ContactGroup::ContactReference &data = contactGroup->contactReference(index);
Member m;
......
......@@ -407,7 +407,7 @@ void OXA::ContactUtils::addContactElements(QDomDocument &document, QDomElement &
delete contacts;
} else {
// the contact group contains only internal contact data
for (uint i = 0; i < contactGroup.dataCount(); ++i) {
for (int i = 0; i < contactGroup.dataCount(); ++i) {
const KContacts::ContactGroup::Data &data = contactGroup.data(i);
QDomElement email = DAVUtils::addOxElement(document, distributionList, QStringLiteral("email"),
OXUtils::writeString(data.email()));
......
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