Commit f49cb7a4c57879e3d2048ec279f58e47e4bf369f
1 parent
08b130e9
Exists in
master
and in
87 other branches
Fix bug in base processes
Showing
2 changed files
with
4 additions
and
6 deletions
Show diff stats
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(¶meter.getParameterManager())){ | |
199 | + std::map<std::string, std::string> tableParams = table.second->getTableParams(¶meter.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(¶meter.getParameterManager())){ | |
120 | + std::map<std::string, std::string> tableParams = table.second->getTableParams(¶meter.getParameterManager()); | |
122 | 121 | if(! tableParams.empty()) |
123 | 122 | for(auto tableParam : tableParams){ |
124 | 123 | paramInfo->addLinkedParamId(tableParam.second); | ... | ... |