X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffactory.cpp;h=fc6468056b086badb5887e428681ba8ae699e7c7;hb=e08e5afeea7194d95be1f02fe9484383574d203f;hp=f46d9c85a8714751f0e41a6d11deee192909136a;hpb=4a53fa6e018c2809a3e829c7d8d90590e420a2e3;p=lyx.git diff --git a/src/factory.cpp b/src/factory.cpp index f46d9c85a8..fc6468056b 100644 --- a/src/factory.cpp +++ b/src/factory.cpp @@ -68,6 +68,10 @@ #include +using std::auto_ptr; +using std::endl; +using std::string; + namespace lyx { @@ -75,10 +79,6 @@ namespace Alert = frontend::Alert; using support::compare_ascii_no_case; -using std::auto_ptr; -using std::endl; -using std::string; - Inset * createInset(BufferView * bv, FuncRequest const & cmd) { @@ -538,9 +538,7 @@ Inset * readInset(Lexer & lex, Buffer const & buf) inset->read(buf, lex); -#ifdef WITH_WARNINGS -#warning hack.. -#endif +// FIXME: hack.. if (inset->lyxCode() == Inset::MATHMACRO_CODE) { MathMacroTemplate const * tmpl = static_cast(inset.get());