Commit f49cb7a4c57879e3d2048ec279f58e47e4bf369f

Authored by Benjamin Renard
1 parent 08b130e9

Fix bug in base processes

src/InternLib/MultiParamProcess.cc
... ... @@ -194,10 +194,9 @@ void MultiParamProcess::updateInfo(Parameter & parameter)
194 194  
195 195 if(! tables.empty()){
196 196 for(auto table : tables){
197   - ParameterManager * parameterManager;
198 197 if (table.second != nullptr){
199   - if(table.second->isVariable(parameterManager)){
200   - std::map<std::string, std::string> tableParams = table.second->getTableParams(parameterManager);
  198 + if(table.second->isVariable(&parameter.getParameterManager())){
  199 + std::map<std::string, std::string> tableParams = table.second->getTableParams(&parameter.getParameterManager());
201 200 if(! tableParams.empty())
202 201 for(auto tableParam : tableParams){
203 202 paramInfo->addLinkedParamId(tableParam.second);
... ...
src/InternLib/SingleParamProcess.cc
... ... @@ -115,10 +115,9 @@ namespace AMDA {
115 115  
116 116 if(! tables.empty()){
117 117 for(auto table : tables){
118   - ParameterManager * parameterManager;
119 118 if (table.second != nullptr){
120   - if(table.second->isVariable(parameterManager)){
121   - std::map<std::string, std::string> tableParams = table.second->getTableParams(parameterManager);
  119 + if(table.second->isVariable(&parameter.getParameterManager())){
  120 + std::map<std::string, std::string> tableParams = table.second->getTableParams(&parameter.getParameterManager());
122 121 if(! tableParams.empty())
123 122 for(auto tableParam : tableParams){
124 123 paramInfo->addLinkedParamId(tableParam.second);
... ...