Ignore:
File:
1 edited

Legend:

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

    rf10b0c r955b91  
    3131
    3232
    33 TextDialog::AtomsTextQuery::AtomsTextQuery(Parameter<std::vector<const atom *> > &param, std::string title, std::string _description) :
    34     Dialog::AtomsQuery(param, title,_description)
     33TextDialog::AtomsTextQuery::AtomsTextQuery(std::string title, std::string _description) :
     34    Dialog::AtomsQuery(title,_description)
    3535{}
    3636
     
    4444  // dissect by " "
    4545  std::string::iterator olditer = line.begin();
    46   std::vector<const atom *> temp_atoms;
    4746  for(std::string::iterator iter = line.begin(); iter != line.end(); ++iter) {
    4847    if (*iter == ' ') {
     
    5453        break;
    5554      }
    56       temp_atoms.push_back(temp);
     55      tmp.push_back(temp);
    5756      olditer = iter;
    5857    }
     
    6463    if(!temp && idxOfAtom!=-1) {
    6564      std::cout << "Invalid Atom Index" << idxOfAtom << std::endl;
    66       temp_atoms.push_back(temp);
     65      tmp.push_back(temp);
    6766    }
    6867  }
    69   tmp.set(temp_atoms);
    7068
    7169  return (idxOfAtom!=-1);
Note: See TracChangeset for help on using the changeset viewer.