From dd9c6fd94a290a087496ebd8615c699d00fe040f Mon Sep 17 00:00:00 2001 From: Rohan Garg Date: Tue, 24 Aug 2010 23:56:03 +0530 Subject: Move encodedUrl inside if block, better memory usage modified: src/protocolhandler.cpp --- src/protocolhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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")) { -- cgit v1.2.1