summaryrefslogtreecommitdiff
path: root/src/adblock
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-14 11:23:37 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-14 11:23:37 +0100
commit3e1ac6fb3f9865bf5bb0c156e985c1a4577b20e0 (patch)
treec0febbda6a1eff4693e856eb0bee65b3ac400136 /src/adblock
parentrekonq 0.3.91 (diff)
downloadrekonq-3e1ac6fb3f9865bf5bb0c156e985c1a4577b20e0.tar.xz
Krazy issues (1st branch)
Diffstat (limited to 'src/adblock')
-rw-r--r--src/adblock/adblockmanager.cpp6
-rw-r--r--src/adblock/adblocknetworkreply.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/adblock/adblockmanager.cpp b/src/adblock/adblockmanager.cpp
index bcb5b556..06f0d164 100644
--- a/src/adblock/adblockmanager.cpp
+++ b/src/adblock/adblockmanager.cpp
@@ -83,10 +83,10 @@ void AdBlockManager::loadSettings()
if (name.startsWith(QLatin1String("Filter")))
{
- if(!url.startsWith("!"))
+ if(!url.startsWith('!'))
{
// white rules
- if(url.startsWith("@@"))
+ if( url.startsWith( QLatin1String("@@") ) )
{
AdBlockRule rule( url.mid(2) );
_whiteList << rule;
@@ -94,7 +94,7 @@ void AdBlockManager::loadSettings()
}
// hide (CSS) rules
- if(url.startsWith("##"))
+ if( url.startsWith( QLatin1String("##") ) )
{
_hideList << url.mid(2);
continue;
diff --git a/src/adblock/adblocknetworkreply.cpp b/src/adblock/adblocknetworkreply.cpp
index 804524b3..3b73b8a0 100644
--- a/src/adblock/adblocknetworkreply.cpp
+++ b/src/adblock/adblocknetworkreply.cpp
@@ -68,7 +68,7 @@ AdBlockNetworkReply::AdBlockNetworkReply(const QNetworkRequest &request, const Q
setOperation(QNetworkAccessManager::GetOperation);
setRequest(request);
setUrl(request.url());
- setError(QNetworkReply::ContentAccessDenied, i18n("Blocked by AdBlockRule: %1").arg(urlString));
+ setError(QNetworkReply::ContentAccessDenied, i18n("Blocked by AdBlockRule: %1", urlString) );
QTimer::singleShot(0, this, SLOT(delayedFinished()));
}