Skip to content

Commit

Permalink
fix: mark FilterParameters output as used
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc authored Aug 4, 2024
1 parent 4b95840 commit ec2ead4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libraries/JANA/Services/JParameterManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ void JParameterManager::WriteConfigFile(std::string filename) {
/// @param [out] parms A map of {key: string, parameter: string}. The contents of this
/// map are replaced on each call. Parameter values are returned
/// as strings rather than as JParameter objects, which means we don't
/// have to worry about ownership.
/// have to worry about ownership. Returned parameters are marked as used.
///
void JParameterManager::FilterParameters(std::map<std::string, std::string> &parms, std::string filter) {

Expand All @@ -405,6 +405,7 @@ void JParameterManager::FilterParameters(std::map<std::string, std::string> &par
if (key.substr(0, filter.size()) != filter) continue;
key.erase(0, filter.size());
}
pair.second->SetIsUsed(true);
parms[key] = value;
}
}

0 comments on commit ec2ead4

Please sign in to comment.