]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_exfuncinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_exfuncinset.C
index f19f96041ac84914fd9138d772054ccfa57afcfb..a7079179c639d5e5c0a5630e0fb85fc07486010a 100644 (file)
@@ -5,6 +5,8 @@
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
 
+using std::auto_ptr;
+
 
 MathExFuncInset::MathExFuncInset(string const & name)
        : MathNestInset(1), name_(name)
@@ -18,9 +20,9 @@ MathExFuncInset::MathExFuncInset(string const & name, MathArray const & ar)
 }
 
 
-InsetBase * MathExFuncInset::clone() const
+auto_ptr<InsetBase> MathExFuncInset::clone() const
 {
-       return new MathExFuncInset(*this);
+       return auto_ptr<InsetBase>(new MathExFuncInset(*this));
 }