Changeset 68f9c43 for src/InitTweak/InitTweak.cc
- Timestamp:
- Mar 16, 2018, 5:15:02 PM (6 years ago)
- Branches:
- new-env, with_gc
- Children:
- 8d7bef2
- Parents:
- 6171841
- git-author:
- Aaron Moss <a3moss@…> (03/16/18 17:04:24)
- git-committer:
- Aaron Moss <a3moss@…> (03/16/18 17:15:02)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/InitTweak.cc
r6171841 r68f9c43 122 122 public: 123 123 ExprImpl( Expression * expr ) : arg( expr ) {} 124 virtual ~ExprImp l() { delete arg; }124 virtual ~ExprImp() = default; 125 125 126 126 virtual std::list< Expression * > next( std::list< Expression * > & indices ) { … … 166 166 167 167 void InitExpander::clearArrayIndices() { 168 deleteAll( indices );169 168 indices.clear(); 170 169 } … … 263 262 build( dst, indices.begin(), indices.end(), init, back_inserter( block->get_kids() ) ); 264 263 if ( block->get_kids().empty() ) { 265 delete block;266 264 return nullptr; 267 265 } else {
Note: See TracChangeset
for help on using the changeset viewer.