- Simplify the code by using foreach for iterating over QLists. - Fix accessing *it before check it != list.constEnd(). - Use QList::contains() instead of QList::count() in two places.
- Simplify the code by using foreach for iterating over QLists.
- Fix accessing *it before check it != list.constEnd().
- Use QList::contains() instead of QList::count() in two places.

svn path=/trunk/KDE/kdepim/; revision=656618

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi