Optimization. Clean up includes

wilder-work
Montel Laurent 15 years ago
parent 8e2bba880e
commit 470b55c9cb
  1. 6
      attachmentcontroller.cpp
  2. 3
      kmmainwidget.cpp

@ -36,15 +36,9 @@
#include <kabc/addressee.h>
#include <kdebug.h>
#include <libkleo/kleo/cryptobackendfactory.h>
#include <libkleo/ui/keyselectiondialog.h>
#include <messagecomposer/attachmentmodel.h>
#include <messagecore/attachmentcompressjob.h>
#include <messagecore/attachmentfrommimecontentjob.h>
#include <messagecore/attachmentfromurljob.h>
#include <messagecore/attachmentpropertiesdialog.h>
#include <messagecore/attachmentpart.h>
#include <messageviewer/editorwatcher.h>
using namespace KMail;
using namespace KPIM;

@ -404,7 +404,8 @@ void KMMainWidget::showNotifications()
Akonadi::Collection::List collections;
QMap<Akonadi::Collection::Id, int>::const_iterator it = mCheckMail.constBegin();
while ( it != mCheckMail.constEnd() ) {
QMap<Akonadi::Collection::Id, int>::const_iterator end = mCheckMail.constEnd();
while ( it != end ) {
Akonadi::Collection collection( it.key() );
if ( it.value() != 0 )
collections << collection;

Loading…
Cancel
Save