Skip to content
Snippets Groups Projects
Commit 84aef031 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

cppcheck

repeated assignment
parent fb96c047
No related branches found
No related tags found
No related merge requests found
...@@ -161,9 +161,8 @@ void ActionAtomistic::parseAtomList(const std::string&key,const int num, std::ve ...@@ -161,9 +161,8 @@ void ActionAtomistic::parseAtomList(const std::string&key,const int num, std::ve
Tools::interpretRanges(strings); t.resize(0); Tools::interpretRanges(strings); t.resize(0);
for(unsigned i=0;i<strings.size();++i){ for(unsigned i=0;i<strings.size();++i){
bool ok=false;
AtomNumber atom; AtomNumber atom;
ok=Tools::convert(strings[i],atom); // this is converting strings to AtomNumbers bool ok=Tools::convert(strings[i],atom); // this is converting strings to AtomNumbers
if(ok) t.push_back(atom); if(ok) t.push_back(atom);
// here we check if this is a special symbol for MOLINFO // here we check if this is a special symbol for MOLINFO
if( !ok && strings[i].compare(0,1,"@")==0 ){ if( !ok && strings[i].compare(0,1,"@")==0 ){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment