Apply suggestions from code review

Co-authored-by: Celtic Minstrel <CelticMinstrel@users.noreply.github.com>
This commit is contained in:
2024-08-24 13:42:54 -05:00
committed by Celtic Minstrel
parent b92ec0b53d
commit 622ba56b2a

View File

@@ -97,7 +97,7 @@ void record_field_input(cKey key) {
std::map<std::string,std::string> info;
std::ostringstream sstr;
sstr << key.spec;
sstr << std::boolalpha << key.spec;
info["spec"] = sstr.str();
sstr.str("");
@@ -199,7 +199,7 @@ cKey key_from_action(Element& action) {
int enum_v;
std::istringstream sstr(info["spec"]);
sstr >> key.spec;
sstr >> std::boolalpha >> key.spec;
if(key.spec){
sstr.str(info["k"]);