]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_unknowninset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_unknowninset.C
index 26fdbafa6bf29f669e16294cbc4c1837ad3faf6c..6a126c1c28ecc24e984f9b65dcb7f5d6a94750e6 100644 (file)
@@ -6,15 +6,17 @@
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
 
+using std::auto_ptr;
+
 
 MathUnknownInset::MathUnknownInset(string const & nm, bool final, bool black)
        : name_(nm), final_(final), black_(black)
 {}
 
 
-InsetBase * MathUnknownInset::clone() const
+auto_ptr<InsetBase> MathUnknownInset::clone() const
 {
-       return new MathUnknownInset(*this);
+       return auto_ptr<InsetBase>(new MathUnknownInset(*this));
 }