Skip to content

Commit

Permalink
Per #3006, update VarInfoPairs::set_dict() to also call VarInfo::set_…
Browse files Browse the repository at this point in the history
…magic().
  • Loading branch information
JohnHalleyGotway committed Dec 31, 2024
1 parent 7a5415a commit fc7f0c8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/libcode/vx_data2d/var_info_pairs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,23 @@ void VarInfoPairs::dump(ostream &out) const {
///////////////////////////////////////////////////////////////////////////////

void VarInfoPairs::set_dict(Dictionary & dict) {

VarInfo::set_dict(dict);

//
// Parse the required name and optional level strings
//
ConcatString nstr = dict.lookup_string(conf_key_name);
ReqName = nstr;
Name = nstr;

ConcatString lstr = dict.lookup_string(conf_key_level, false);
Level.set_req_name(lstr.c_str());
Level.set_name(lstr.c_str());

VarInfo::set_magic(nstr, lstr);

return;
}

///////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit fc7f0c8

Please sign in to comment.