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

Loading…
Cancel
Save