]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetPagebreak.h
Fix text frame drawing.
[lyx.git] / src / insets / InsetPagebreak.h
index 83515a180a5ca18ef49c5d461ed045216fef86c1..d361039d2d463a7488e0c7c9e085bb82d63f22f2 100644 (file)
@@ -51,9 +51,9 @@ public:
        virtual std::string getCmdName() const { return "\\newpage"; }
 
 private:
-       virtual std::auto_ptr<Inset> doClone() const
+       virtual Inset * clone() const
        {
-               return std::auto_ptr<Inset>(new InsetPagebreak);
+               return new InsetPagebreak;
        }
 };
 
@@ -67,9 +67,9 @@ public:
        std::string getCmdName() const { return "\\clearpage"; }
 
 private:
-       virtual std::auto_ptr<Inset> doClone() const
+       virtual Inset * clone() const
        {
-               return std::auto_ptr<Inset>(new InsetClearPage);
+               return new InsetClearPage;
        }
 };
 
@@ -83,9 +83,9 @@ public:
        std::string getCmdName() const { return "\\cleardoublepage"; }
 
 private:
-       virtual std::auto_ptr<Inset> doClone() const
+       virtual Inset * clone() const
        {
-               return std::auto_ptr<Inset>(new InsetClearDoublePage);
+               return new InsetClearDoublePage;
        }
 };