Code simplification.

This commit is contained in:
Enrico Forestieri 2015-05-21 18:13:42 +02:00
parent 613cd431c9
commit 93e131f54f

View File

@ -195,8 +195,7 @@ void InsetBibitem::doDispatch(Cursor & cur, FuncRequest & cmd)
void InsetBibitem::read(Lexer & lex)
{
InsetCommandParams * icp = const_cast<InsetCommandParams *>(&params());
icp->Read(lex, &buffer());
InsetCommand::read(lex);
if (prefixIs(getParam("key"), key_prefix)) {
int const key = convert<int>(getParam("key").substr(key_prefix.length()));