diff options
Diffstat (limited to 'src/adblock/adblockmanager.cpp')
-rw-r--r-- | src/adblock/adblockmanager.cpp | 6 |
1 files changed, 3 insertions, 3 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; |