]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_xarrowinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_xarrowinset.C
index 7add8d271571013cc4bccabf6f215e828d897364..df92ac6159a74d5582a7080e6c65967a59350369 100644 (file)
@@ -6,15 +6,17 @@
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
 
+using std::auto_ptr;
+
 
 MathXArrowInset::MathXArrowInset(string const & name)
        : MathFracbaseInset(), name_(name)
 {}
 
 
-MathInset * MathXArrowInset::clone() const
+auto_ptr<InsetBase> MathXArrowInset::clone() const
 {
-       return new MathXArrowInset(*this);
+       return auto_ptr<InsetBase>(new MathXArrowInset(*this));
 }