Ignore:
File:
1 edited

Legend:

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

    rf10b0c r955b91  
    3535
    3636
    37 TextDialog::ElementsTextQuery::ElementsTextQuery(Parameter<std::vector<const element *> > &param, std::string title, std::string _description) :
    38     Dialog::ElementsQuery(param, title,_description)
     37TextDialog::ElementsTextQuery::ElementsTextQuery(std::string title, std::string _description) :
     38    Dialog::ElementsQuery(title,_description)
    3939{}
    4040
     
    5050  // dissect by " "
    5151  std::string::iterator olditer = line.begin();
    52   std::vector<const element *> temp_elements;
    5352  for(std::string::iterator iter = line.begin(); iter != line.end(); ++iter) {
    5453    if (*iter == ' ') {
     
    6564        break;
    6665      }
    67       temp_elements.push_back(temp);
     66      tmp.push_back(temp);
    6867      olditer = iter;
    6968    }
     
    8079    if(!temp && Z!=-1) {
    8180      std::cout << "Invalid Element" << shorthand << std::endl;
    82       temp_elements.push_back(temp);
     81      tmp.push_back(temp);
    8382    }
    8483  }
    85   tmp.set(temp_elements);
    8684
    8785  return (Z!=-1);
Note: See TracChangeset for help on using the changeset viewer.