X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffactory.cpp;h=4f6cb089a8518fec998e838c1e0dc6d55e5831d0;hb=54d77c9bfc2857b21ee35b22a0a2133962a6c4a3;hp=15bef4b3875d4f59bcd089299e3013bd37e1b2ce;hpb=a7a31dc3924497373479621a1bae5bb195dcc6f2;p=lyx.git diff --git a/src/factory.cpp b/src/factory.cpp index 15bef4b387..4f6cb089a8 100644 --- a/src/factory.cpp +++ b/src/factory.cpp @@ -388,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; @@ -495,7 +495,7 @@ Inset * readInset(Lexer & lex, Buffer const & buf) // can be translated to inset codes using insetCode(). And the insets' // write() routines should use insetName() rather than hardcoding it. if (tmptok == "Quotes") { - inset.reset(new InsetQuotes); + inset.reset(new InsetQuotes(buf)); } else if (tmptok == "External") { inset.reset(new InsetExternal(const_cast(buf))); } else if (tmptok == "FormulaMacro") { @@ -521,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") {