summaryrefslogtreecommitdiff
path: root/src/adblock/adblockrule.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-01-21 00:44:26 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-01-21 00:44:26 +0100
commit094258e7cb1cb06db105c5c8d067e58e4a40d22b (patch)
tree38fa0c493faef23e610397fe6dc68f893f5f09cb /src/adblock/adblockrule.h
parentSome leaks fixed in new code (diff)
downloadrekonq-094258e7cb1cb06db105c5c8d067e58e4a40d22b.tar.xz
Save memory!
With this commit, we save (at least) 3 bytes for each AdBlockRule defined (and probably more than 3!). In my installation I have about 100 rules... :)
Diffstat (limited to 'src/adblock/adblockrule.h')
-rw-r--r--src/adblock/adblockrule.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/adblock/adblockrule.h b/src/adblock/adblockrule.h
index 7c4c4161..35715051 100644
--- a/src/adblock/adblockrule.h
+++ b/src/adblock/adblockrule.h
@@ -55,11 +55,11 @@
#define ADBLOCKRULE_H
// Qt Includes
-#include <QStringList>
+#include <QRegExp>
+#include <QString>
// Forward Includes
class QUrl;
-class QRegExp;
class AdBlockRule
@@ -73,7 +73,9 @@ private:
QString convertPatternToRegExp(const QString &wildcardPattern);
QRegExp m_regExp;
- QStringList m_options;
+
+ // Rule Options
+ bool m_optionMatchRule;
};