X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetEnvironment.h;h=69fc9c4507ee39410324bc0bdeeb09697f0278c2;hb=0362c6aae73c293d1c20277c12d362acfe0b2ef6;hp=55e9bf0a4ecbdcc380a409a15eee426585849c66;hpb=39c7e2faf09a85af8e641549be2694675d133ed6;p=lyx.git diff --git a/src/insets/InsetEnvironment.h b/src/insets/InsetEnvironment.h index 55e9bf0a4e..69fc9c4507 100644 --- a/src/insets/InsetEnvironment.h +++ b/src/insets/InsetEnvironment.h @@ -13,7 +13,7 @@ #define INSETENVIRONMENT_H #include "InsetText.h" -#include "lyxlayout_ptr_fwd.h" +#include "LayoutPtr.h" namespace lyx { @@ -29,7 +29,7 @@ public: /// void read(Buffer const & buf, Lexer & lex); /// - Inset::Code lyxCode() const { return Inset::ENVIRONMENT_CODE; } + InsetCode lyxCode() const { return ENVIRONMENT_CODE; } /// int latex(Buffer const &, odocstream &, OutputParams const &) const; @@ -49,7 +49,7 @@ public: protected: InsetEnvironment(InsetEnvironment const &); private: - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; /// the layout LayoutPtr layout_; ///