Changes in src/SynTree/Statement.cc [ac71a86:8688ce1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.cc
rac71a86 r8688ce1 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Aug 12 13:58:48201613 // Update Count : 6 212 // Last Modified On : Thu Aug 4 11:25:20 2016 13 // Update Count : 61 14 14 // 15 15 … … 124 124 Statement( other ), condition( maybeClone( other.condition ) ), thenPart( maybeClone( other.thenPart ) ), elsePart( maybeClone( other.elsePart ) ) {} 125 125 126 IfStmt::~IfStmt() { 127 delete condition; 128 delete thenPart; 129 delete elsePart; 130 } 126 IfStmt::~IfStmt() {} 131 127 132 128 void IfStmt::print( std::ostream &os, int indent ) const { … … 313 309 } 314 310 315 CatchStmt::CatchStmt( std::list<Label> labels, Declaration *_decl, Statement *_body, bool catchAny) :316 Statement( labels ), decl ( _decl ), body( _body ), catchRest ( catchAny) {311 CatchStmt::CatchStmt( std::list<Label> labels, Declaration *_decl, Statement *_body, bool isCatchRest ) : 312 Statement( labels ), decl ( _decl ), body( _body ), catchRest ( isCatchRest ) { 317 313 } 318 314
Note:
See TracChangeset
for help on using the changeset viewer.