Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/config.cpp

    rcbc5fb read4e6  
    675675{
    676676  int MaxTypes = 0;
    677   element *elementhash[MAX_ELEMENTS];
     677  const element *elementhash[MAX_ELEMENTS];
    678678  char name[MAX_ELEMENTS];
    679679  char keyword[MAX_ELEMENTS];
     
    733733            sprintf(keyword,"%s_%i",name, j+1);
    734734            if (repetition == 0) {
    735               neues = World::get()->createAtom();
     735              neues = World::getInstance().createAtom();
    736736              AtomList[i][j] = neues;
    737737              LinearList[ FileBuffer->LineMapping[FileBuffer->CurrentLine] ] = neues;
     
    812812          sprintf(keyword,"%s_%i",name, j+1);
    813813          if (repetition == 0) {
    814             neues = World::get()->createAtom();
     814            neues = World::getInstance().createAtom();
    815815            AtomList[i][j] = neues;
    816816            LinearList[ FileBuffer->LineMapping[FileBuffer->CurrentLine] ] = neues;
     
    851851void config::Load(const char * const filename, const string &BondGraphFileName, const periodentafel * const periode, MoleculeListClass * const &MolList)
    852852{
    853   molecule *mol = World::get()->createMolecule();
     853  molecule *mol = World::getInstance().createMolecule();
    854854  ifstream *file = new ifstream(filename);
    855855  if (file == NULL) {
     
    10891089void config::LoadOld(const char * const filename, const string &BondGraphFileName, const periodentafel * const periode, MoleculeListClass * const &MolList)
    10901090{
    1091   molecule *mol = World::get()->createMolecule();
     1091  molecule *mol = World::getInstance().createMolecule();
    10921092  ifstream *file = new ifstream(filename);
    10931093  if (file == NULL) {
     
    11071107  string zeile;
    11081108  string dummy;
    1109   element *elementhash[128];
     1109  const element *elementhash[128];
    11101110  int Z = -1;
    11111111  int No = -1;
     
    12881288        }
    12891289        istringstream input2(zeile);
    1290         atom *neues = World::get()->createAtom();
     1290        atom *neues = World::getInstance().createAtom();
    12911291        input2 >> neues->x.x[0]; // x
    12921292        input2 >> neues->x.x[1]; // y
     
    17881788  char filename[MAXSTRINGSIZE];
    17891789  ofstream output;
    1790   molecule *mol = World::get()->createMolecule();
     1790  molecule *mol = World::getInstance().createMolecule();
    17911791  mol->SetNameFromFilename(ConfigFileName);
    17921792
     
    18991899  }
    19001900
    1901   World::get()->destroyMolecule(mol);
     1901  World::getInstance().destroyMolecule(mol);
    19021902};
    19031903
Note: See TracChangeset for help on using the changeset viewer.