From 094258e7cb1cb06db105c5c8d067e58e4a40d22b Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 21 Jan 2010 00:44:26 +0100 Subject: 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... :) --- src/adblock/adblockrule.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/adblock/adblockrule.h') 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 +#include +#include // 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; }; -- cgit v1.2.1