Changeset 4a319a for src/UIElements/CommandLineUI
- Timestamp:
- May 5, 2016, 5:14:19 PM (10 years ago)
- Children:
- 94605f
- Parents:
- 9274f3
- git-author:
- Frederik Heber <heber@…> (05/05/16 14:25:00)
- git-committer:
- Frederik Heber <heber@…> (05/05/16 17:14:19)
- Location:
- src/UIElements/CommandLineUI/Query
- Files:
-
- 4 edited
-
AtomCommandLineQuery.cpp (modified) (1 diff)
-
AtomsCommandLineQuery.cpp (modified) (1 diff)
-
MoleculeCommandLineQuery.cpp (modified) (1 diff)
-
MoleculesCommandLineQuery.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/CommandLineUI/Query/AtomCommandLineQuery.cpp
r9274f3 r4a319a 64 64 return false; 65 65 } 66 temp = const_cast<const World &>(World::getInstance()).getAtom(AtomById(IdxOfAtom));66 temp = World::getConstInstance().getAtom(AtomById(IdxOfAtom)); 67 67 return true; 68 68 } -
src/UIElements/CommandLineUI/Query/AtomsCommandLineQuery.cpp
r9274f3 r4a319a 61 61 const atom *temp_element; 62 62 for (std::vector<int>::iterator iter = IdxOfAtom.begin(); iter != IdxOfAtom.end(); ++iter) { 63 temp_element = const_cast<const World &>(World::getInstance()).getAtom(AtomById(*iter));63 temp_element = World::getConstInstance().getAtom(AtomById(*iter)); 64 64 if (temp_element) 65 65 temp.push_back(temp_element); -
src/UIElements/CommandLineUI/Query/MoleculeCommandLineQuery.cpp
r9274f3 r4a319a 59 59 return false; 60 60 } 61 temp = const_cast<const World &>(World::getInstance()).getMolecule(MoleculeById(IdxOfMol));61 temp = World::getConstInstance().getMolecule(MoleculeById(IdxOfMol)); 62 62 return true; 63 63 } -
src/UIElements/CommandLineUI/Query/MoleculesCommandLineQuery.cpp
r9274f3 r4a319a 61 61 } 62 62 for (std::vector<int>::iterator iter = IdxOfMol.begin(); iter != IdxOfMol.end(); ++iter) { 63 const molecule *temp_element = const_cast<const World &>(World::getInstance()).63 const molecule *temp_element = World::getConstInstance(). 64 64 getMolecule(MoleculeById(*iter)); 65 65 if (temp_element)
Note:
See TracChangeset
for help on using the changeset viewer.
