]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_symbolinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_symbolinset.C
index 92de5abe8e2c52107eebedaceac67e7929936bcc..809e25464936f7767aa67635eb58e474c670f171 100644 (file)
@@ -10,6 +10,8 @@
 #include "LaTeXFeatures.h"
 #include "debug.h"
 
+using std::auto_ptr;
+
 
 MathSymbolInset::MathSymbolInset(latexkeys const * l)
        : sym_(l), h_(0)
@@ -26,10 +28,9 @@ MathSymbolInset::MathSymbolInset(string const & name)
 {}
 
 
-
-InsetBase * MathSymbolInset::clone() const
+auto_ptr<InsetBase> MathSymbolInset::clone() const
 {
-       return new MathSymbolInset(*this);
+       return auto_ptr<InsetBase>(new MathSymbolInset(*this));
 }