summaryrefslogtreecommitdiff
path: root/src/adblock
diff options
context:
space:
mode:
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()));
}