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