- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/TextUI/Query/ElementsTextQuery.cpp
rf10b0c r955b91 35 35 36 36 37 TextDialog::ElementsTextQuery::ElementsTextQuery( Parameter<std::vector<const element *> > ¶m,std::string title, std::string _description) :38 Dialog::ElementsQuery( param,title,_description)37 TextDialog::ElementsTextQuery::ElementsTextQuery(std::string title, std::string _description) : 38 Dialog::ElementsQuery(title,_description) 39 39 {} 40 40 … … 50 50 // dissect by " " 51 51 std::string::iterator olditer = line.begin(); 52 std::vector<const element *> temp_elements;53 52 for(std::string::iterator iter = line.begin(); iter != line.end(); ++iter) { 54 53 if (*iter == ' ') { … … 65 64 break; 66 65 } 67 t emp_elements.push_back(temp);66 tmp.push_back(temp); 68 67 olditer = iter; 69 68 } … … 80 79 if(!temp && Z!=-1) { 81 80 std::cout << "Invalid Element" << shorthand << std::endl; 82 t emp_elements.push_back(temp);81 tmp.push_back(temp); 83 82 } 84 83 } 85 tmp.set(temp_elements);86 84 87 85 return (Z!=-1);
Note:
See TracChangeset
for help on using the changeset viewer.