GCC 4.7 fix.

This resolves bug report 957.
Thanks to David C. Rankin.
pull/1/head
Darrell Anderson 13 years ago
parent 8d876899c8
commit 9f6d630040

@ -228,15 +228,15 @@ void ImagesList::slotAddImages(const KURL::List& list)
bool find = false; bool find = false;
TQListViewItemIterator it(d->listView); TQListViewItemIterator it2(d->listView);
while (it.current()) while (it2.current())
{ {
ImagesListViewItem* item = dynamic_cast<ImagesListViewItem*>(*it); ImagesListViewItem* item = dynamic_cast<ImagesListViewItem*>(*it2);
if (item->url() == imageUrl) if (item->url() == imageUrl)
find = true; find = true;
++it; ++it2;
} }
if (!find) if (!find)
@ -256,16 +256,16 @@ void ImagesList::slotAddImages(const KURL::List& list)
void ImagesList::slotGotThumbnail(const KFileItem *item, const TQPixmap& pix) void ImagesList::slotGotThumbnail(const KFileItem *item, const TQPixmap& pix)
{ {
TQListViewItemIterator it(d->listView); TQListViewItemIterator it2(d->listView);
while (it.current()) while (it2.current())
{ {
ImagesListViewItem *selItem = dynamic_cast<ImagesListViewItem*>(*it); ImagesListViewItem *selItem = dynamic_cast<ImagesListViewItem*>(*it2);
if (selItem->url() == item->url()) if (selItem->url() == item->url())
{ {
selItem->setPixmap(0, pix); selItem->setPixmap(0, pix);
} }
++it; ++it2;
} }
} }
@ -284,17 +284,17 @@ void ImagesList::slotRemoveItems()
do do
{ {
find = false; find = false;
TQListViewItemIterator it(d->listView); TQListViewItemIterator it2(d->listView);
while (it.current()) while (it2.current())
{ {
ImagesListViewItem* item = dynamic_cast<ImagesListViewItem*>(*it); ImagesListViewItem* item = dynamic_cast<ImagesListViewItem*>(*it2);
if (item->isSelected()) if (item->isSelected())
{ {
delete item; delete item;
find = true; find = true;
break; break;
} }
++it; ++it2;
} }
} }
while(find); while(find);
@ -308,17 +308,17 @@ void ImagesList::removeItemByUrl(const KURL& url)
do do
{ {
find = false; find = false;
TQListViewItemIterator it(d->listView); TQListViewItemIterator it2(d->listView);
while (it.current()) while (it2.current())
{ {
ImagesListViewItem* item = dynamic_cast<ImagesListViewItem*>(*it); ImagesListViewItem* item = dynamic_cast<ImagesListViewItem*>(*it2);
if (item->url() == url) if (item->url() == url)
{ {
delete item; delete item;
find = true; find = true;
break; break;
} }
++it; ++it2;
} }
} }
while(find); while(find);
@ -329,12 +329,12 @@ void ImagesList::removeItemByUrl(const KURL& url)
KURL::List ImagesList::imageUrls() const KURL::List ImagesList::imageUrls() const
{ {
KURL::List list; KURL::List list;
TQListViewItemIterator it(d->listView); TQListViewItemIterator it2(d->listView);
while (it.current()) while (it2.current())
{ {
ImagesListViewItem* item = dynamic_cast<ImagesListViewItem*>(*it); ImagesListViewItem* item = dynamic_cast<ImagesListViewItem*>(*it2);
list.append(item->url()); list.append(item->url());
++it; ++it2;
} }
return list; return list;
} }

Loading…
Cancel
Save