Changes in src/config.cpp [cbc5fb:ead4e6]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/config.cpp
rcbc5fb read4e6 675 675 { 676 676 int MaxTypes = 0; 677 element *elementhash[MAX_ELEMENTS];677 const element *elementhash[MAX_ELEMENTS]; 678 678 char name[MAX_ELEMENTS]; 679 679 char keyword[MAX_ELEMENTS]; … … 733 733 sprintf(keyword,"%s_%i",name, j+1); 734 734 if (repetition == 0) { 735 neues = World::get ()->createAtom();735 neues = World::getInstance().createAtom(); 736 736 AtomList[i][j] = neues; 737 737 LinearList[ FileBuffer->LineMapping[FileBuffer->CurrentLine] ] = neues; … … 812 812 sprintf(keyword,"%s_%i",name, j+1); 813 813 if (repetition == 0) { 814 neues = World::get ()->createAtom();814 neues = World::getInstance().createAtom(); 815 815 AtomList[i][j] = neues; 816 816 LinearList[ FileBuffer->LineMapping[FileBuffer->CurrentLine] ] = neues; … … 851 851 void config::Load(const char * const filename, const string &BondGraphFileName, const periodentafel * const periode, MoleculeListClass * const &MolList) 852 852 { 853 molecule *mol = World::get ()->createMolecule();853 molecule *mol = World::getInstance().createMolecule(); 854 854 ifstream *file = new ifstream(filename); 855 855 if (file == NULL) { … … 1089 1089 void config::LoadOld(const char * const filename, const string &BondGraphFileName, const periodentafel * const periode, MoleculeListClass * const &MolList) 1090 1090 { 1091 molecule *mol = World::get ()->createMolecule();1091 molecule *mol = World::getInstance().createMolecule(); 1092 1092 ifstream *file = new ifstream(filename); 1093 1093 if (file == NULL) { … … 1107 1107 string zeile; 1108 1108 string dummy; 1109 element *elementhash[128];1109 const element *elementhash[128]; 1110 1110 int Z = -1; 1111 1111 int No = -1; … … 1288 1288 } 1289 1289 istringstream input2(zeile); 1290 atom *neues = World::get ()->createAtom();1290 atom *neues = World::getInstance().createAtom(); 1291 1291 input2 >> neues->x.x[0]; // x 1292 1292 input2 >> neues->x.x[1]; // y … … 1788 1788 char filename[MAXSTRINGSIZE]; 1789 1789 ofstream output; 1790 molecule *mol = World::get ()->createMolecule();1790 molecule *mol = World::getInstance().createMolecule(); 1791 1791 mol->SetNameFromFilename(ConfigFileName); 1792 1792 … … 1899 1899 } 1900 1900 1901 World::get ()->destroyMolecule(mol);1901 World::getInstance().destroyMolecule(mol); 1902 1902 }; 1903 1903
Note:
See TracChangeset
for help on using the changeset viewer.