Changeset a32b204 for translator/InitTweak/InitModel.h
- Timestamp:
- May 17, 2015, 1:19:35 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 0dd3a2f
- Parents:
- b87a5ed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/InitTweak/InitModel.h
rb87a5ed ra32b204 92 92 public: 93 93 InitUnspooler() : init(0), taken( false ) {} 94 virtual ~InitUnspooler() { if (! taken && (init != 0)) { delete init; init = 0; } }94 virtual ~InitUnspooler() { if (! taken && (init != 0)) { delete init; init = 0; } } 95 95 Initializer *get_initializer() { return init; } 96 96 Initializer *grab_initializer() { taken = true; return init; }
Note: See TracChangeset
for help on using the changeset viewer.