Changes in src/moleculelist.cpp [23b547:24a5e0]
- File:
-
- 1 edited
-
src/moleculelist.cpp (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/moleculelist.cpp
r23b547 r24a5e0 215 215 // remove src 216 216 ListOfMolecules.remove(srcmol); 217 World::get Instance().destroyMolecule(srcmol);217 World::get()->destroyMolecule(srcmol); 218 218 return true; 219 219 }; … … 750 750 void MoleculeListClass::DissectMoleculeIntoConnectedSubgraphs(const periodentafel * const periode, config * const configuration) 751 751 { 752 molecule *mol = World::get Instance().createMolecule();752 molecule *mol = World::get()->createMolecule(); 753 753 atom *Walker = NULL; 754 754 atom *Advancer = NULL; … … 775 775 } 776 776 // remove the molecule 777 World::get Instance().destroyMolecule(*MolRunner);777 World::get()->destroyMolecule(*MolRunner); 778 778 ListOfMolecules.erase(MolRunner); 779 779 } … … 797 797 molecule **molecules = Malloc<molecule *>(MolCount, "config::Load() - **molecules"); 798 798 for (int i=0;i<MolCount;i++) { 799 molecules[i] = World::get Instance().createMolecule();799 molecules[i] = World::get()->createMolecule(); 800 800 molecules[i]->ActiveFlag = true; 801 801 strncpy(molecules[i]->name, mol->name, MAXSTRINGSIZE); … … 895 895 OBSERVE; 896 896 molecule *mol = NULL; 897 mol = World::get Instance().createMolecule();897 mol = World::get()->createMolecule(); 898 898 insert(mol); 899 899 }; … … 904 904 char filename[MAXSTRINGSIZE]; 905 905 Log() << Verbose(0) << "Format should be XYZ with: ShorthandOfElement\tX\tY\tZ" << endl; 906 mol = World::get Instance().createMolecule();906 mol = World::get()->createMolecule(); 907 907 do { 908 908 Log() << Verbose(0) << "Enter file name: "; … … 962 962 mol = *ListRunner; 963 963 ListOfMolecules.erase(ListRunner); 964 World::get Instance().destroyMolecule(mol);964 World::get()->destroyMolecule(mol); 965 965 break; 966 966 } … … 1009 1009 // remove the leaf itself 1010 1010 if (Leaf != NULL) { 1011 World::get Instance().destroyMolecule(Leaf);1011 World::get()->destroyMolecule(Leaf); 1012 1012 Leaf = NULL; 1013 1013 }
Note:
See TracChangeset
for help on using the changeset viewer.
