summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRohan Garg <rohangarg@ubuntu.com>2010-08-24 23:56:03 +0530
committerRohan Garg <rohangarg@ubuntu.com>2010-08-24 23:56:03 +0530
commitdd9c6fd94a290a087496ebd8615c699d00fe040f (patch)
tree5124b429be69fbe2e6b35cbb74ae144047445596 /src
parent Replace more of KUrl by QByteArray... (diff)
downloadrekonq-dd9c6fd94a290a087496ebd8615c699d00fe040f.tar.xz
Move encodedUrl inside if block, better memory usage
modified: src/protocolhandler.cpp
Diffstat (limited to 'src')
-rw-r--r--src/protocolhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp
index eb6e513d..5cc09f44 100644
--- a/src/protocolhandler.cpp
+++ b/src/protocolhandler.cpp
@@ -142,10 +142,10 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra
return true;
}
- QByteArray encodedUrl = _url.toEncoded();
// "about" handling
if (_url.protocol() == QL1S("about"))
{
+ QByteArray encodedUrl = _url.toEncoded();
// let webkit manage the about:blank url...
if (encodedUrl == QByteArray("about:blank"))
{