case REF_CODE:
case TOC_CODE:
case HYPERLINK_CODE: {
- InsetCommandParams p(name);
+ InsetCommandParams p(code);
data = InsetCommandMailer::params2string(name, p);
break;
}
if (data.empty())
// default type is requested
data = "include";
- InsetCommandParams p("include", data);
+ InsetCommandParams p(INCLUDE_CODE, data);
data = InsetIncludeMailer::params2string(p);
break;
}
break;
}
case CITE_CODE: {
- InsetCommandParams p("cite");
+ InsetCommandParams p(CITE_CODE);
data = InsetCommandMailer::params2string(name, p);
break;
}
arg = token(argument, '|', 0);
opt1 = token(argument, '|', 1);
}
- InsetCommandParams icp("cite");
+ InsetCommandParams icp(CITE_CODE);
icp["key"] = from_utf8(arg);
if (!opt1.empty())
icp["before"] = from_utf8(opt1);