Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Statement.cc

    r2037f82 r1d4580a  
    124124        Statement( other ), condition( maybeClone( other.condition ) ), thenPart( maybeClone( other.thenPart ) ), elsePart( maybeClone( other.elsePart ) ) {}
    125125
    126 IfStmt::~IfStmt() {
    127         delete condition;
    128         delete thenPart;
    129         delete elsePart;
    130 }
     126IfStmt::~IfStmt() {}
    131127
    132128void IfStmt::print( std::ostream &os, int indent ) const {
     
    159155        delete condition;
    160156        // destroy statements
    161         deleteAll( statements );
    162157}
    163158
     
    188183CaseStmt::~CaseStmt() {
    189184        delete condition;
    190         deleteAll( stmts );
    191185}
    192186
     
    222216WhileStmt::~WhileStmt() {
    223217        delete body;
    224         delete condition;
    225218}
    226219
     
    297290TryStmt::~TryStmt() {
    298291        delete block;
    299         deleteAll( handlers );
    300         delete finallyBlock;
    301292}
    302293
Note: See TracChangeset for help on using the changeset viewer.