Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/MoleculeAction/CopyAction.cpp

    rce7fdc r34fbb3  
    5959  MoleculeCopyState *state = assert_cast<MoleculeCopyState*>(_state.get());
    6060
    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();
    7462  World::getInstance().destroyMolecule(state->copy);
    7563
Note: See TracChangeset for help on using the changeset viewer.