- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/TextUI/Query/StringsTextQuery.cpp
r955b91 rf10b0c 28 28 29 29 30 TextDialog::StringsTextQuery::StringsTextQuery( std::string title, std::string _description) :31 Dialog::StringsQuery( title,_description)30 TextDialog::StringsTextQuery::StringsTextQuery(Parameter<std::vector<std::string> > ¶m, std::string title, std::string _description) : 31 Dialog::StringsQuery(param, title,_description) 32 32 {} 33 33 … … 38 38 getline(std::cin,temp); 39 39 // dissect by " " 40 std::vector<std::string> temp_strings; 40 41 std::string::iterator olditer = temp.begin(); 41 42 for(std::string::iterator iter = temp.begin(); iter != temp.end(); ++iter) { 42 43 if (*iter == ' ') { 43 t mp.push_back(std::string(iter, olditer));44 temp_strings.push_back(std::string(iter, olditer)); 44 45 olditer = iter; 45 46 } 46 47 } 47 48 if (olditer != temp.begin()) // insert last part also 48 tmp.push_back(std::string(olditer, temp.end())); 49 temp_strings.push_back(std::string(olditer, temp.end())); 50 tmp.set(temp_strings); 49 51 50 52 return true;
Note:
See TracChangeset
for help on using the changeset viewer.