]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloatlist.h
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetfloatlist.h
index 61d2ac0d1c3a6b8ca61ecdb43927f5c6d35ffc6a..8854eea077e77dfd20d7be0ac153ba0814b9b890 100644 (file)
@@ -26,8 +26,8 @@ public:
        ///
        ~InsetFloatList();
        ///
-       InsetBase * clone() const {
-               return new InsetFloatList(getCmdName());
+       virtual std::auto_ptr<InsetBase> clone() const {
+               return std::auto_ptr<InsetBase>(new InsetFloatList(getCmdName()));
        }
        ///
        dispatch_result localDispatch(FuncRequest const & cmd);
@@ -38,7 +38,7 @@ public:
        ///
        bool display() const { return true; }
        ///
-       Inset::Code lyxCode() const;
+       InsetOld::Code lyxCode() const;
        ///
        void write(Buffer const *, std::ostream &) const;
        ///