GCC 4.7 fix.

This partially resolves bug report 958.
Thanks to David C. Rankin.
(cherry picked from commit a209c81b78)
v3.5.13-sru
Darrell Anderson 13 years ago committed by Slávek Banko
parent aff49594f5
commit 70be32fe11

@ -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