]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_fontoldinset.C
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / mathed / math_fontoldinset.C
index da27886ffa548a196ff870ad2f1f62c34a2c3026..8c603178c846fa3166292c9f1e546636668486f9 100644 (file)
@@ -10,6 +10,7 @@
 #include "support/LOstream.h"
 #include "frontends/Painter.h"
 
+using std::auto_ptr;
 
 
 MathFontOldInset::MathFontOldInset(latexkeys const * key)
@@ -19,9 +20,9 @@ MathFontOldInset::MathFontOldInset(latexkeys const * key)
 }
 
 
-InsetBase * MathFontOldInset::clone() const
+auto_ptr<InsetBase> MathFontOldInset::clone() const
 {
-       return new MathFontOldInset(*this);
+       return auto_ptr<InsetBase>(new MathFontOldInset(*this));
 }