]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_fontoldinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_fontoldinset.C
index c6b3c2b299e0e053549ccd4a351ec97817f5aaf5..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)
 }
 
 
-MathInset * MathFontOldInset::clone() const
+auto_ptr<InsetBase> MathFontOldInset::clone() const
 {
-       return new MathFontOldInset(*this);
+       return auto_ptr<InsetBase>(new MathFontOldInset(*this));
 }