From e402674092d8fced3faa981122542c681ca370a0 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 24 Jan 2011 19:06:47 +0000 Subject: [PATCH] Code clean up --- src/rss/rssfolder.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/rss/rssfolder.cpp b/src/rss/rssfolder.cpp index 2eeaa7cc5..28eb101f7 100644 --- a/src/rss/rssfolder.cpp +++ b/src/rss/rssfolder.cpp @@ -179,8 +179,7 @@ void RssFolder::processFinishedDownload(QString url, QString path) { QImage fileIcon; if(fileIcon.load(path)) { QList res = findFeedsWithIcon(url); - RssFeed* stream; - foreach(stream, res){ + foreach(RssFeed* stream, res){ stream->setIconPath(path); if(!stream->isLoading()) RssManager::instance()->forwardFeedIconChanged(stream->getUrl(), stream->getIconPath()); @@ -190,7 +189,7 @@ void RssFolder::processFinishedDownload(QString url, QString path) { } return; } - RssFeed *stream = (RssFeed*)this->value(url, 0); + RssFeed *stream = static_cast(this->value(url, 0)); if(!stream){ qDebug("This rss stream was deleted in the meantime, nothing to update"); return; @@ -213,7 +212,7 @@ void RssFolder::handleDownloadFailure(QString url, QString reason) { qDebug("Could not download icon at %s, reason: %s", (const char*)url.toLocal8Bit(), (const char*)reason.toLocal8Bit()); return; } - RssFeed *stream = (RssFeed*)this->value(url, 0); + RssFeed *stream = static_cast(this->value(url, 0)); if(!stream){ qDebug("This rss stream was deleted in the meantime, nothing to update"); return;