]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_kerninset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_kerninset.C
index 88e5fff4e9b6b43e6bd2918f11f3ae328294063c..ff11550a65f98c3c7b6d386741dbef7016948e11 100644 (file)
@@ -7,6 +7,8 @@
 #include "math_streamstr.h"
 #include "math_support.h"
 
+using std::auto_ptr;
+
 
 MathKernInset::MathKernInset()
 {}
@@ -22,9 +24,9 @@ MathKernInset::MathKernInset(string const & s)
 {}
 
 
-InsetBase * MathKernInset::clone() const
+auto_ptr<InsetBase> MathKernInset::clone() const
 {
-       return new MathKernInset(*this);
+       return auto_ptr<InsetBase>(new MathKernInset(*this));
 }