~ubuntu-branches/ubuntu/raring/kdepim/raring-proposed

« back to all changes in this revision

Viewing changes to calendarsupport/eventarchiver.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-07 07:56:38 UTC
  • mfrom: (0.2.27)
  • Revision ID: package-import@ubuntu.com-20120607075638-0luhdq11z7sgvs4m
Tags: 4:4.8.80-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
  if ( KCalPrefs::instance()->mArchiveTodos ) {
107
107
    Akonadi::Item::List t = calendar->rawTodos();
108
108
    Akonadi::Item::List::ConstIterator it;
109
 
    for ( it = t.constBegin(); it != t.constEnd(); ++it ) {
 
109
    Akonadi::Item::List::ConstIterator end( t.constEnd() );
 
110
 
 
111
    for ( it = t.constBegin(); it != end; ++it ) {
110
112
      const Todo::Ptr todo = CalendarSupport::todo( *it );
111
113
      Q_ASSERT( todo );
112
114
      if ( isSubTreeComplete( calendar, todo, limitDate ) ) {
146
148
{
147
149
  QStringList incidenceStrs;
148
150
  Akonadi::Item::List::ConstIterator it;
149
 
  for ( it = incidences.constBegin(); it != incidences.constEnd(); ++it ) {
 
151
  Akonadi::Item::List::ConstIterator end( incidences.constEnd() );
 
152
  for ( it = incidences.constBegin(); it != end; ++it ) {
150
153
    incidenceStrs.append( CalendarSupport::incidence( *it )->summary() );
151
154
  }
152
155
 
184
187
  FileStorage storage( cal );
185
188
 
186
189
  QString tmpFileName;
187
 
  // KSaveFile can not be called with an open File Handle on Windows.
 
190
  // KSaveFile cannot be called with an open File Handle on Windows.
188
191
  // So we use KTemporaryFile only to generate a unique filename
189
192
  // and then close/delete the file again. This file must be deleted
190
193
  // here.