]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_makeboxinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_makeboxinset.C
index 9e57932be767cf9de47a11fa577e77e077d5c90f..b708d4a7da40987dcf0eda45aa0b05778a0e7758 100644 (file)
@@ -10,6 +10,7 @@
 #include "math_streamstr.h"
 #include "frontends/Painter.h"
 
+using std::auto_ptr;
 
 
 MathMakeboxInset::MathMakeboxInset()
@@ -17,9 +18,9 @@ MathMakeboxInset::MathMakeboxInset()
 {}
 
 
-MathInset * MathMakeboxInset::clone() const
+auto_ptr<InsetBase> MathMakeboxInset::clone() const
 {
-       return new MathMakeboxInset(*this);
+       return auto_ptr<InsetBase>(new MathMakeboxInset(*this));
 }