]> 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 52bedb6d29fe09b4a6b52bafae73305af6aeefb4..8854eea077e77dfd20d7be0ac153ba0814b9b890 100644 (file)
@@ -26,14 +26,10 @@ public:
        ///
        ~InsetFloatList();
        ///
-       Inset * clone(Buffer const &) const {
-               return new InsetFloatList(getCmdName());
+       virtual std::auto_ptr<InsetBase> clone() const {
+               return std::auto_ptr<InsetBase>(new InsetFloatList(getCmdName()));
        }
        ///
-       //Inset * clone(Buffer const &, bool = false) const {
-       //      return new InsetFloatList(getCmdName());
-       //}
-       ///
        dispatch_result localDispatch(FuncRequest const & cmd);
        ///
        string const getScreenLabel(Buffer const *) const;
@@ -42,7 +38,7 @@ public:
        ///
        bool display() const { return true; }
        ///
-       Inset::Code lyxCode() const;
+       InsetOld::Code lyxCode() const;
        ///
        void write(Buffer const *, std::ostream &) const;
        ///