]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_fboxinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_fboxinset.C
index f8e5889348b91466c97060614f7f90d01621712e..53316e0ba8b597471dcc254b3c957326850b3504 100644 (file)
@@ -7,6 +7,7 @@
 #include "math_parser.h"
 #include "frontends/Painter.h"
 
+using std::auto_ptr;
 
 
 MathFboxInset::MathFboxInset(latexkeys const * key)
@@ -14,9 +15,9 @@ MathFboxInset::MathFboxInset(latexkeys const * key)
 {}
 
 
-InsetBase * MathFboxInset::clone() const
+auto_ptr<InsetBase> MathFboxInset::clone() const
 {
-       return new MathFboxInset(*this);
+       return auto_ptr<InsetBase>(new MathFboxInset(*this));
 }