From 9f6d6300404413190e22b40925c8842262a2e6e4 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Fri, 27 Apr 2012 23:27:44 -0500 Subject: [PATCH] GCC 4.7 fix. This resolves bug report 957. Thanks to David C. Rankin. --- kipi-plugins/flickrexport/imageslist.cpp | 40 ++++++++++++------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/kipi-plugins/flickrexport/imageslist.cpp b/kipi-plugins/flickrexport/imageslist.cpp index 06f2f9d..b19aac4 100644 --- a/kipi-plugins/flickrexport/imageslist.cpp +++ b/kipi-plugins/flickrexport/imageslist.cpp @@ -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(*it); + ImagesListViewItem* item = dynamic_cast(*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(*it); + ImagesListViewItem *selItem = dynamic_cast(*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(*it); + ImagesListViewItem* item = dynamic_cast(*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(*it); + ImagesListViewItem* item = dynamic_cast(*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(*it); + ImagesListViewItem* item = dynamic_cast(*it2); list.append(item->url()); - ++it; + ++it2; } return list; }