Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/TextUI/Query/UnsignedIntsTextQuery.cpp

    r955b91 rf10b0c  
    2828
    2929
    30 TextDialog::UnsignedIntsTextQuery::UnsignedIntsTextQuery(std::string title, std::string _description) :
    31     Dialog::UnsignedIntsQuery(title,_description)
     30TextDialog::UnsignedIntsTextQuery::UnsignedIntsTextQuery(Parameter<std::vector<unsigned int> > &param, std::string title, std::string _description) :
     31    Dialog::UnsignedIntsQuery(param, title,_description)
    3232{}
    3333
     
    3939  getline(std::cin,line);
    4040  // dissect by " "
     41  std::vector<unsigned int> temp_uints;
    4142  std::string::iterator olditer = line.begin();
    4243  for(std::string::iterator iter = line.begin(); iter != line.end(); ++iter) {
     
    4445      std::istringstream stream(std::string(iter, olditer));
    4546      stream >> temp;
    46       tmp.push_back(temp);
     47      temp_uints.push_back(temp);
    4748      olditer = iter;
    4849    }
     
    5152    std::istringstream stream(std::string(olditer, line.end()));
    5253    stream >> temp;
    53     tmp.push_back(temp);
     54    temp_uints.push_back(temp);
    5455  }
     56  tmp.set(temp_uints);
    5557
    5658  return true;
Note: See TracChangeset for help on using the changeset viewer.