GCC 4.7 fix.

This partially resolves bug report 958.
Thanks to David C. Rankin.
pull/1/head
Darrell Anderson 12 years ago
parent a94890345e
commit a209c81b78

@ -1579,16 +1579,16 @@ void AlbumManager::slotDatesJobData(KIO::Job*, const TQByteArray& data)
// Check if Year Album already exist.
DAlbum *yAlbum = 0;
AlbumIterator it(d->rootDAlbum);
while (it.current())
AlbumIterator it2(d->rootDAlbum);
while (it2.current())
{
DAlbum* a = (DAlbum*)(*it);
DAlbum* a = (DAlbum*)(*it2);
if (a->date() == TQDate(year, 1, 1) && a->range() == DAlbum::Year)
{
yAlbum = a;
break;
}
++it;
++it2;
}
// If no, create Year album.

Loading…
Cancel
Save