]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_stackrelinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_stackrelinset.C
index 4e03e7258b706d6bc7954cae2cbc3a6123049f41..3f31cfde1b50b4aa8057b614b6a71743e108a357 100644 (file)
@@ -1,19 +1,19 @@
-
 #include "math_stackrelinset.h"
 #include "math_mathmlstream.h"
 #include "math_support.h"
 
 
 using std::max;
+using std::auto_ptr;
 
 
 MathStackrelInset::MathStackrelInset()
 {}
 
 
-MathInset * MathStackrelInset::clone() const
+auto_ptr<InsetBase> MathStackrelInset::clone() const
 {
-       return new MathStackrelInset(*this);
+       return auto_ptr<InsetBase>(new MathStackrelInset(*this));
 }
 
 
@@ -37,7 +37,7 @@ void MathStackrelInset::draw(PainterInfo & pi, int x, int y) const
        cell(1).draw(pi, m - cell(1).width() / 2, y);
        FracChanger dummy(pi.base);
        cell(0).draw(pi, m - cell(0).width() / 2, yo);
-       drawMarkers(pi, x, y);  
+       drawMarkers(pi, x, y);
 }