Skip to content
Snippets Groups Projects
Commit 4942a341 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

sort

parent 66df8bf2
No related branches found
No related tags found
No related merge requests found
...@@ -716,7 +716,8 @@ namespace onelab{ ...@@ -716,7 +716,8 @@ namespace onelab{
if(name.empty() && client.empty()){ if(name.empty() && client.empty()){
std::set<parameter*, parameterLessThan> ps; std::set<parameter*, parameterLessThan> ps;
_getAllParameters(ps); _getAllParameters(ps);
for(std::set<parameter*>::iterator it = ps.begin(); it != ps.end(); it++) for(std::set<parameter*, parameterLessThan>::iterator it = ps.begin();
it != ps.end(); it++)
delete *it; delete *it;
_numbers.clear(); _numbers.clear();
_strings.clear(); _strings.clear();
...@@ -755,7 +756,8 @@ namespace onelab{ ...@@ -755,7 +756,8 @@ namespace onelab{
{ {
std::set<parameter*, parameterLessThan> ps; std::set<parameter*, parameterLessThan> ps;
_getAllParameters(ps); _getAllParameters(ps);
for(std::set<parameter*>::iterator it = ps.begin(); it != ps.end(); it++) for(std::set<parameter*, parameterLessThan>::iterator it = ps.begin();
it != ps.end(); it++)
if((*it)->hasClient(client)) return true; if((*it)->hasClient(client)) return true;
return false; return false;
} }
...@@ -765,7 +767,8 @@ namespace onelab{ ...@@ -765,7 +767,8 @@ namespace onelab{
{ {
std::set<parameter*, parameterLessThan> ps; std::set<parameter*, parameterLessThan> ps;
_getAllParameters(ps); _getAllParameters(ps);
for(std::set<parameter*>::iterator it = ps.begin(); it != ps.end(); it++){ for(std::set<parameter*, parameterLessThan>::iterator it = ps.begin();
it != ps.end(); it++){
if((client.empty() || (*it)->hasClient(client)) && (*it)->getChanged()){ if((client.empty() || (*it)->hasClient(client)) && (*it)->getChanged()){
return true; return true;
} }
...@@ -778,7 +781,8 @@ namespace onelab{ ...@@ -778,7 +781,8 @@ namespace onelab{
{ {
std::set<parameter*, parameterLessThan> ps; std::set<parameter*, parameterLessThan> ps;
_getAllParameters(ps); _getAllParameters(ps);
for(std::set<parameter*>::iterator it = ps.begin(); it != ps.end(); it++) for(std::set<parameter*, parameterLessThan>::iterator it = ps.begin();
it != ps.end(); it++)
if(client.empty() || (*it)->hasClient(client)) if(client.empty() || (*it)->hasClient(client))
(*it)->setChanged(changed); (*it)->setChanged(changed);
return true; return true;
...@@ -790,7 +794,8 @@ namespace onelab{ ...@@ -790,7 +794,8 @@ namespace onelab{
std::vector<std::string> s; std::vector<std::string> s;
std::set<parameter*, parameterLessThan> ps; std::set<parameter*, parameterLessThan> ps;
_getAllParameters(ps); _getAllParameters(ps);
for(std::set<parameter*>::const_iterator it = ps.begin(); it != ps.end(); it++) for(std::set<parameter*, parameterLessThan>::const_iterator it = ps.begin();
it != ps.end(); it++)
if(client.empty() || (*it)->hasClient(client)) if(client.empty() || (*it)->hasClient(client))
s.push_back((*it)->toChar()); s.push_back((*it)->toChar());
return s; return s;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment