ProFileEvaluator::Private needs no q pointer

Change-Id: I946f3ebe9fde342fed4648cbbf0d0872d48572da
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
Oswald Buddenhagen
2012-05-02 14:58:24 +02:00
parent 171531fcc9
commit 00ec7f5e70

View File

@@ -215,12 +215,10 @@ class ProFileEvaluator::Private
{ {
public: public:
static void initStatics(); static void initStatics();
Private(ProFileEvaluator *q_, ProFileOption *option, ProFileParser *parser, Private(ProFileOption *option, ProFileParser *parser,
ProFileEvaluatorHandler *handler); ProFileEvaluatorHandler *handler);
~Private(); ~Private();
ProFileEvaluator *q;
enum VisitReturn { enum VisitReturn {
ReturnFalse, ReturnFalse,
ReturnTrue, ReturnTrue,
@@ -539,9 +537,9 @@ const ProString &ProFileEvaluator::Private::map(const ProString &var)
} }
ProFileEvaluator::Private::Private(ProFileEvaluator *q_, ProFileOption *option, ProFileEvaluator::Private::Private(ProFileOption *option,
ProFileParser *parser, ProFileEvaluatorHandler *handler) ProFileParser *parser, ProFileEvaluatorHandler *handler)
: q(q_), m_option(option), m_parser(parser), m_handler(handler) : m_option(option), m_parser(parser), m_handler(handler)
{ {
// So that single-threaded apps don't have to call initialize() for now. // So that single-threaded apps don't have to call initialize() for now.
initStatics(); initStatics();
@@ -3402,7 +3400,7 @@ void ProFileEvaluator::initialize()
ProFileEvaluator::ProFileEvaluator(ProFileOption *option, ProFileParser *parser, ProFileEvaluator::ProFileEvaluator(ProFileOption *option, ProFileParser *parser,
ProFileEvaluatorHandler *handler) ProFileEvaluatorHandler *handler)
: d(new Private(this, option, parser, handler)) : d(new Private(option, parser, handler))
{ {
} }