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. // Check if Year Album already exist.
DAlbum *yAlbum = 0; DAlbum *yAlbum = 0;
AlbumIterator it(d->rootDAlbum); AlbumIterator it2(d->rootDAlbum);
while (it.current()) while (it2.current())
{ {
DAlbum* a = (DAlbum*)(*it); DAlbum* a = (DAlbum*)(*it2);
if (a->date() == TQDate(year, 1, 1) && a->range() == DAlbum::Year) if (a->date() == TQDate(year, 1, 1) && a->range() == DAlbum::Year)
{ {
yAlbum = a; yAlbum = a;
break; break;
} }
++it; ++it2;
} }
// If no, create Year album. // If no, create Year album.

Loading…
Cancel
Save