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

up

parent 09c2015d
No related branches found
No related tags found
No related merge requests found
Pipeline #2240 passed
...@@ -504,7 +504,14 @@ namespace onelab{ ...@@ -504,7 +504,14 @@ namespace onelab{
setVisible(p.getVisible()); setVisible(p.getVisible());
setReadOnly(p.getReadOnly()); setReadOnly(p.getReadOnly());
setAttributes(p.getAttributes()); setAttributes(p.getAttributes());
if(p.getValue() != getValue()){ // FIXME change this bool changed = false;
for(unsigned int i = 0; i < p.getValues().size(); i++){
if(p.getValues()[i] != getValues()[i]){
changed = true;
break;
}
}
if(changed){
setValues(p.getValues()); setValues(p.getValues());
setChanged(getChangedValue()); setChanged(getChangedValue());
} }
...@@ -685,7 +692,14 @@ namespace onelab{ ...@@ -685,7 +692,14 @@ namespace onelab{
setVisible(p.getVisible()); setVisible(p.getVisible());
setReadOnly(p.getReadOnly()); setReadOnly(p.getReadOnly());
setAttributes(p.getAttributes()); setAttributes(p.getAttributes());
if(p.getValue() != getValue()){ // FIXME: change this bool changed = false;
for(unsigned int i = 0; i < p.getValues().size(); i++){
if(p.getValues()[i] != getValues()[i]){
changed = true;
break;
}
}
if(changed){
setValues(p.getValues()); setValues(p.getValues());
setChanged(getChangedValue()); setChanged(getChangedValue());
} }
...@@ -908,11 +922,13 @@ namespace onelab{ ...@@ -908,11 +922,13 @@ namespace onelab{
{ {
return _get(ps, name, client, _strings); return _get(ps, name, client, _strings);
} }
void getPtr(number **ptr, const std::string name, const std::string client="") void getPtr(number **ptr, const std::string &name,
const std::string &client = "")
{ {
*ptr = _getPtr(name, client, _numbers); *ptr = _getPtr(name, client, _numbers);
} }
void getPtr(string **ptr, const std::string name, const std::string client="") void getPtr(string **ptr, const std::string &name,
const std::string &client = "")
{ {
*ptr = _getPtr(name, client, _strings); *ptr = _getPtr(name, client, _strings);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment