]> git.lyx.org Git - lyx.git/commitdiff
Code simplification.
authorEnrico Forestieri <forenr@lyx.org>
Thu, 21 May 2015 16:13:42 +0000 (18:13 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 21 May 2015 16:13:42 +0000 (18:13 +0200)
src/insets/InsetBibitem.cpp

index a0498994d13f0d19ef44da94414ee59caf7cb354..d0a28e73fe964d02965d168b1b6829fa78f51096 100644 (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()));