- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/TextUI/Query/AtomsTextQuery.cpp
rf10b0c r955b91 31 31 32 32 33 TextDialog::AtomsTextQuery::AtomsTextQuery( Parameter<std::vector<const atom *> > ¶m,std::string title, std::string _description) :34 Dialog::AtomsQuery( param,title,_description)33 TextDialog::AtomsTextQuery::AtomsTextQuery(std::string title, std::string _description) : 34 Dialog::AtomsQuery(title,_description) 35 35 {} 36 36 … … 44 44 // dissect by " " 45 45 std::string::iterator olditer = line.begin(); 46 std::vector<const atom *> temp_atoms;47 46 for(std::string::iterator iter = line.begin(); iter != line.end(); ++iter) { 48 47 if (*iter == ' ') { … … 54 53 break; 55 54 } 56 t emp_atoms.push_back(temp);55 tmp.push_back(temp); 57 56 olditer = iter; 58 57 } … … 64 63 if(!temp && idxOfAtom!=-1) { 65 64 std::cout << "Invalid Atom Index" << idxOfAtom << std::endl; 66 t emp_atoms.push_back(temp);65 tmp.push_back(temp); 67 66 } 68 67 } 69 tmp.set(temp_atoms);70 68 71 69 return (idxOfAtom!=-1);
Note:
See TracChangeset
for help on using the changeset viewer.