[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/plugins/kmail/bodypartformatter
From: Laurent Montel <montel () kde ! org>
Date: 2008-11-19 13:10:09
Message-ID: 1227100209.482955.32643.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 886516 by mlaurent:
Fix iterator
M +6 -6 text_calendar.cpp
--- trunk/KDE/kdepim/plugins/kmail/bodypartformatter/text_calendar.cpp #886515:886516
@@ -98,7 +98,7 @@
if ( (*it)->type() == "imap" || (*it)->type() == "kolab" ) {
const QStringList subResources = (*it)->subresources();
QSet<QString> prefixSet;
- for ( QStringList::ConstIterator subIt = subResources.begin(); subIt != \
subResources.end(); ++subIt ) { + for ( QStringList::ConstIterator subIt = \
subResources.constBegin(); subIt != subResources.constEnd(); ++subIt ) { if ( \
!(*subIt).contains( "/.INBOX.directory/" ) ) // we don't care about shared folders
continue;
@@ -195,7 +195,7 @@
Attendee* myself = 0;
// Find myself. There will always be all attendees listed, even if
// only I need to answer it.
- for ( it = attendees.begin(); it != attendees.end(); ++it ) {
+ for ( it = attendees.constBegin(); it != attendees.constEnd(); ++it ) {
// match only the email part, not the name
if( KPIMUtils::compareEmail( (*it)->email(), receiver, false ) ) {
// We are the current one, and even the receiver, note
@@ -212,8 +212,8 @@
bool rsvp = true; // better send superfluously than not at all
Attendee::List attendees = incidence->attendees();
Attendee::List::ConstIterator it;
- for ( it = attendees.begin(); it != attendees.end(); ++it ) {
- if ( it == attendees.begin() ) {
+ for ( it = attendees.constBegin(); it != attendees.constEnd(); ++it ) {
+ if ( it == attendees.constBegin() ) {
rsvp = (*it)->RSVP(); // use what the first one has
} else {
if ( (*it)->RSVP() != rsvp ) {
@@ -230,8 +230,8 @@
Attendee::Role role = Attendee::OptParticipant;
Attendee::List attendees = incidence->attendees();
Attendee::List::ConstIterator it;
- for ( it = attendees.begin(); it != attendees.end(); ++it ) {
- if ( it == attendees.begin() ) {
+ for ( it = attendees.constBegin(); it != attendees.constEnd(); ++it ) {
+ if ( it == attendees.constBegin() ) {
role = (*it)->role(); // use what the first one has
} else {
if ( (*it)->role() != role ) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic