summaryrefslogtreecommitdiff
path: root/src/networkaccessmanager.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-07-25 19:48:41 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-07-25 19:48:41 +0200
commit14664e54b1a2dbe9c06f474a0918a262dba04e20 (patch)
tree2f48b455d90b5a966045f8ba6388ac8c0620259f /src/networkaccessmanager.cpp
parentLast SSL fixes (diff)
downloadrekonq-14664e54b1a2dbe9c06f474a0918a262dba04e20.tar.xz
clean up
- QL1S - one stupid kDebug less - codingstyle
Diffstat (limited to 'src/networkaccessmanager.cpp')
-rw-r--r--src/networkaccessmanager.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/networkaccessmanager.cpp b/src/networkaccessmanager.cpp
index 3c03657c..21377dd9 100644
--- a/src/networkaccessmanager.cpp
+++ b/src/networkaccessmanager.cpp
@@ -44,9 +44,9 @@ NetworkAccessManager::NetworkAccessManager(QObject *parent)
: AccessManager(parent)
{
QString c = KGlobal::locale()->country();
- if(c == QL1S("C"))
+ if (c == QL1S("C"))
c = QL1S("en_US");
- if(c != QL1S("en_US"))
+ if (c != QL1S("en_US"))
c.append(QL1S(", en_US"));
_acceptLanguage = c.toLatin1();
@@ -64,7 +64,7 @@ QNetworkReply *NetworkAccessManager::createRequest(QNetworkAccessManager::Operat
req.setRawHeader("Accept-Language", _acceptLanguage);
KIO::CacheControl cc = KProtocolManager::cacheControl();
- switch(cc)
+ switch (cc)
{
case KIO::CC_CacheOnly: // Fail request if not in cache.
req.setAttribute(QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::AlwaysCache);
@@ -86,14 +86,14 @@ QNetworkReply *NetworkAccessManager::createRequest(QNetworkAccessManager::Operat
}
// Handle GET operations with AdBlock
- if(op == QNetworkAccessManager::GetOperation)
+ if (op == QNetworkAccessManager::GetOperation)
reply = rApp->adblockManager()->block(req, parentPage);
- if(!reply)
+ if (!reply)
reply = AccessManager::createRequest(op, req, outgoingData);
- if(parentPage && parentPage->hasNetworkAnalyzerEnabled())
+ if (parentPage && parentPage->hasNetworkAnalyzerEnabled())
emit networkData(op, req, reply);
return reply;