summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
authorJonathan Thomas <echidnaman@kubuntu.org>2010-05-27 10:57:10 -0400
committerJonathan Thomas <echidnaman@kubuntu.org>2010-05-27 10:57:10 -0400
commit498eac8ccbc952228ab14178fc36635360ddde91 (patch)
tree1967d5e24e6e400077c333875c168a643460f02f /src/webpage.cpp
parentThe second arg of QString::replace has to be a QString, I suppose (diff)
downloadrekonq-498eac8ccbc952228ab14178fc36635360ddde91.tar.xz
Const iterator fixes
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();