~ubuntu-branches/ubuntu/quantal/kdepim/quantal

« back to all changes in this revision

Viewing changes to libkdepim/maillistdrag.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:51 UTC
  • mto: This revision was merged to the branch mainline in revision 193.
  • Revision ID: package-import@ubuntu.com-20111215141751-bmhdpiwl23wd9w26
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
QDataStream& operator<< ( QDataStream &s, const MailList &mailList )
74
74
{
75
75
  MailList::const_iterator it;
76
 
  for (it = mailList.begin(); it != mailList.end(); ++it) {
 
76
  MailList::const_iterator end( mailList.constEnd() );
 
77
  for (it = mailList.constBegin(); it!=end; ++it) {
77
78
    MailSummary mailDrag = *it;
78
79
    s << mailDrag;
79
80
  }
194
195
{
195
196
  MailList mailList = fromMimeData( md );
196
197
  if ( mailList.count() ) {
197
 
    MailList::iterator it;
 
198
    MailList::const_iterator it;
198
199
    QByteArray a;
199
200
    QBuffer buffer( &a );
200
201
    buffer.open( QIODevice::WriteOnly );
201
202
    QDataStream stream( &buffer );
202
 
    for (it = mailList.begin(); it != mailList.end(); ++it) {
 
203
    MailList::const_iterator end( mailList.constEnd() );
 
204
    for (it = mailList.constBegin(); it != end; ++it) {
203
205
      MailSummary mailDrag = *it;
204
206
      stream << mailDrag.serialNumber();
205
207
    }
252
254
      int i = 0;
253
255
      dlg->progressBar()->setValue( i );
254
256
      dlg->show();
255
 
 
256
 
      for ( MailList::ConstIterator it = list.constBegin(); it != list.constEnd(); ++it ) {
 
257
      MailList::ConstIterator end( list.constEnd() );
 
258
      for ( MailList::ConstIterator it = list.constBegin(); it != end; ++it ) {
257
259
 
258
260
        // Get the serial number from the mail summary and use the mail text source
259
261
        // to get the actual text of the mail.