Inset * createInset(BufferView * bv, FuncRequest const & cmd)
{
- BufferParams const & params = bv->buffer()->params();
+ BufferParams const & params = bv->buffer().params();
try {
r = 2;
if (c <= 0)
c = 2;
- return new InsetTabular(*bv->buffer(), r, c);
+ return new InsetTabular(bv->buffer(), r, c);
}
case LFUN_CAPTION_INSERT: {
return new InsetListings(params, par);
} else if (name == "external") {
- Buffer const & buffer = *bv->buffer();
+ Buffer const & buffer = bv->buffer();
InsetExternalParams iep;
InsetExternalMailer::string2params(to_utf8(cmd.argument()),
buffer, iep);
return inset.release();
} else if (name == "graphics") {
- Buffer const & buffer = *bv->buffer();
+ Buffer const & buffer = bv->buffer();
InsetGraphicsParams igp;
InsetGraphicsMailer::string2params(to_utf8(cmd.argument()),
buffer, igp);
InsetCommandParams icp(name);
InsetCommandMailer::string2params(name, to_utf8(cmd.argument()),
icp);
- return new InsetRef(icp, *bv->buffer());
+ return new InsetRef(icp, bv->buffer());
} else if (name == "toc") {
InsetCommandParams icp("tableofcontents");
inset->read(buf, lex);
-#ifdef WITH_WARNINGS
-#warning hack..
-#endif
+// FIXME: hack..
if (inset->lyxCode() == Inset::MATHMACRO_CODE) {
MathMacroTemplate const * tmpl =
static_cast<MathMacroTemplate*>(inset.get());