- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/MoleculeAction/CopyAction.cpp
rce7fdc r34fbb3 59 59 MoleculeCopyState *state = assert_cast<MoleculeCopyState*>(_state.get()); 60 60 61 for (molecule::iterator AtomRunner = state->copy->begin(); 62 !state->copy->empty(); 63 AtomRunner = state->copy->begin()) { 64 (*AtomRunner)->removeAllBonds(); 65 // BondList& ListOfBonds = (*AtomRunner)->getListOfBonds(); 66 // for(BondList::iterator BondRunner = ListOfBonds.begin(); 67 // !ListOfBonds.empty(); 68 // BondRunner = ListOfBonds.begin()) { 69 // delete(*BondRunner); 70 // } 71 atom *Walker = *AtomRunner; 72 World::getInstance().destroyAtom(Walker); 73 } 61 state->copy->removeAtomsinMolecule(); 74 62 World::getInstance().destroyMolecule(state->copy); 75 63
Note:
See TracChangeset
for help on using the changeset viewer.