Ignore:
File:
1 edited

Legend:

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

    rf10b0c r955b91  
    3131
    3232
    33 TextDialog::MoleculesTextQuery::MoleculesTextQuery(Parameter<std::vector<const molecule *> > &param, std::string title, std::string _description) :
    34     Dialog::MoleculesQuery(param, title,_description)
     33TextDialog::MoleculesTextQuery::MoleculesTextQuery(std::string title, std::string _description) :
     34    Dialog::MoleculesQuery(title,_description)
    3535{}
    3636
     
    4343  getline(std::cin,line);
    4444  // dissect by " "
    45   std::vector<const molecule *> temp_mols;
    4645  std::string::iterator olditer = line.begin();
    4746  for(std::string::iterator iter = line.begin(); iter != line.end(); ++iter) {
     
    5453        break;
    5554      }
    56       temp_mols.push_back(temp);
     55      tmp.push_back(temp);
    5756      olditer = iter;
    5857    }
     
    6463    if(!temp && idxOfMol!=-1){
    6564      std::cout << "Invalid Molecule Index" << idxOfMol << std::endl;
    66       temp_mols.push_back(temp);
     65      tmp.push_back(temp);
    6766    }
    6867  }
    69   tmp.set(temp_mols);
    7068
    7169  return (idxOfMol!=-1);
Note: See TracChangeset for help on using the changeset viewer.