X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffactory.cpp;h=eba16dcc30bf7782fa4838363e8c1032b6feba0f;hb=cca78e3c8ae27431323746abd64f9d7db017099d;hp=64af45381280eda2aa45c81daa6f186e8b286782;hpb=20b9e0ba9301caad3e7d28f56ffb0c0180aae9c9;p=lyx.git diff --git a/src/factory.cpp b/src/factory.cpp index 64af453812..eba16dcc30 100644 --- a/src/factory.cpp +++ b/src/factory.cpp @@ -141,9 +141,6 @@ Inset * createInsetHelper(Buffer & buf, FuncRequest const & cmd) case LFUN_OPTIONAL_INSERT: return new InsetOptArg(buf); - case LFUN_BIBITEM_INSERT: - return new InsetBibitem(buf, InsetCommandParams(BIBITEM_CODE)); - case LFUN_FLOAT_INSERT: { // check if the float type exists string const argument = to_utf8(cmd.argument()); @@ -391,7 +388,7 @@ Inset * createInsetHelper(Buffer & buf, FuncRequest const & cmd) if (message.type_ == ErrorException) { // This should never happen! Alert::error(message.title_, message.details_); - LyX::cref().exit(1); + lyx_exit(1); } else if (message.type_ == WarningException) { Alert::warning(message.title_, message.details_); return 0; @@ -524,7 +521,7 @@ Inset * readInset(Lexer & lex, Buffer const & buf) } else if (tmptok == "space") { inset.reset(new InsetSpace); } else if (tmptok == "Tabular") { - inset.reset(new InsetTabular(buf)); + inset.reset(new InsetTabular(const_cast(buf))); } else if (tmptok == "Text") { inset.reset(new InsetText(buf)); } else if (tmptok == "VSpace") {