OSDN Git Service

Removing redundant error checking related to booking declaration.
[tjqt4port/tj2qt4.git] / taskjuggler / ParserElement.cpp
1 /*
2  * ParserElement.cpp - TaskJuggler
3  *
4  * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of version 2 of the GNU General Public License as
8  * published by the Free Software Foundation.
9  *
10  * $Id$
11  */
12
13 #include "ParserElement.h"
14 #include "ParserNode.h"
15
16 ParserElement::ParserElement(const QString t, ParserFunctionPtr preF, 
17                              ParserNode* pn, ParserFunctionPtr postF) :
18     tag(t),
19     preFunc(preF),
20     node(0),
21     postFunc(postF)
22 {
23     pn->add(this, t);
24 }
25
26 ParserElement::~ParserElement()
27 {
28     delete node;
29 }
30