summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-28 11:12:42 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-28 11:12:42 +0200
commit3cd1f78b70ad60fc0197db664d361e92487d5e8b (patch)
tree96f54bc8232fd146c4d0c4c6c588bd79e415aa4d /src/webpage.cpp
parentSVN_SILENT made messages (.desktop file) (diff)
parentDon't use QString::number(), KDE will format the numbers is an l10n-friendly ... (diff)
downloadrekonq-3cd1f78b70ad60fc0197db664d361e92487d5e8b.tar.xz
Merge commit 'refs/merge-requests/2286' of git://gitorious.org/rekonq/mainline into m2286
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 00745445..45059def 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -615,14 +615,14 @@ void WebPage::downloadAllContentsWithKGet(QPoint)
KUrl relativeUrl;
QWebElementCollection images = mainFrame()->documentElement().findAll("img");
- foreach(QWebElement img, images)
+ foreach(const QWebElement &img, images)
{
relativeUrl.setEncodedUrl(img.attribute("src").toUtf8(), KUrl::TolerantMode);
contents << baseUrl.resolved(relativeUrl).toString();
}
QWebElementCollection links = mainFrame()->documentElement().findAll("a");
- foreach(QWebElement link, links)
+ foreach(const QWebElement &link, links)
{
relativeUrl.setEncodedUrl(link.attribute("href").toUtf8(), KUrl::TolerantMode);
contents << baseUrl.resolved(relativeUrl).toString();