- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/TextUI/Query/IntsTextQuery.cpp
r955b91 rf10b0c 28 28 29 29 30 TextDialog::IntsTextQuery::IntsTextQuery( std::string title, std::string _description) :31 Dialog::IntsQuery( title,_description)30 TextDialog::IntsTextQuery::IntsTextQuery(Parameter<std::vector<int> > ¶m, std::string title, std::string _description) : 31 Dialog::IntsQuery(param, title,_description) 32 32 {} 33 33 … … 39 39 getline(std::cin,line); 40 40 // dissect by " " 41 std::vector<int> temp_int; 41 42 std::string::iterator olditer = line.begin(); 42 43 for(std::string::iterator iter = line.begin(); iter != line.end(); ++iter) { … … 44 45 std::istringstream stream(std::string(iter, olditer)); 45 46 stream >> temp; 46 t mp.push_back(temp);47 temp_int.push_back(temp); 47 48 olditer = iter; 48 49 } … … 51 52 std::istringstream stream(std::string(olditer, line.end())); 52 53 stream >> temp; 53 t mp.push_back(temp);54 temp_int.push_back(temp); 54 55 } 56 tmp.set(temp_int); 55 57 56 58 return true;
Note:
See TracChangeset
for help on using the changeset viewer.