diff options
author | Rohan Garg <rohangarg@ubuntu.com> | 2010-08-24 23:56:03 +0530 |
---|---|---|
committer | Rohan Garg <rohangarg@ubuntu.com> | 2010-08-24 23:56:03 +0530 |
commit | dd9c6fd94a290a087496ebd8615c699d00fe040f (patch) | |
tree | 5124b429be69fbe2e6b35cbb74ae144047445596 | |
parent | Replace more of KUrl by QByteArray... (diff) | |
download | rekonq-dd9c6fd94a290a087496ebd8615c699d00fe040f.tar.xz |
Move encodedUrl inside if block, better memory usage
modified: src/protocolhandler.cpp
-rw-r--r-- | src/protocolhandler.cpp | 2 |
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")) { |