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