Skip to content

Commit

Permalink
removed obj_name where possible (idaholab#12960)
Browse files Browse the repository at this point in the history
  • Loading branch information
tophmatthews committed Mar 28, 2019
1 parent b218d87 commit da594cc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions framework/src/parser/Parser.C
Expand Up @@ -738,24 +738,24 @@ Parser::buildJsonSyntaxTree(JsonSyntaxTree & root) const
name = act_name.substr(0, pos - 1) + obj_name;
else
{
name = act_name.substr(0, pos - 1) + "/<type>/" + obj_name;
name = act_name.substr(0, pos - 1) + "/<type>/" + moose_obj->first;
is_action_params = true;
}
}
else
{
name = act_name + "/<type>/" + obj_name;
name = act_name + "/<type>/" + moose_obj->first;
is_type = true;
}

moose_obj_params.set<std::string>("type") = obj_name;
moose_obj_params.set<std::string>("type") = moose_obj->first;

auto lineinfo = _factory.getLineInfo(moose_obj->first);
std::string classname = _factory.associatedClassName(moose_obj->first);
root.addParameters(act_name,
name,
is_type,
obj_name,
moose_obj->first,
is_action_params,
&moose_obj_params,
lineinfo,
Expand Down Expand Up @@ -840,16 +840,16 @@ Parser::buildFullTree(const std::string & search_string)
name = act_name.substr(0, pos - 1) + obj_name;
else
{
name = act_name.substr(0, pos - 1) + "/<type>/" + obj_name;
name = act_name.substr(0, pos - 1) + "/<type>/" + moose_obj->first;
is_action_params = true;
}
}
else
{
name = act_name + "/<type>/" + obj_name;
name = act_name + "/<type>/" + moose_obj->first;
}

moose_obj_params.set<std::string>("type") = obj_name;
moose_obj_params.set<std::string>("type") = moose_obj->first;

_syntax_formatter->insertNode(
name, moose_obj->first, is_action_params, &moose_obj_params);
Expand Down

0 comments on commit da594cc

Please sign in to comment.