]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_decorationinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_decorationinset.C
index 1273285eea83d4138ee3f3be80b688f5af2dac3f..51de586808b082a38d53710922a815757bef5acd 100644 (file)
@@ -8,15 +8,17 @@
 #include "math_streamstr.h"
 #include "support/LOstream.h"
 
+using std::auto_ptr;
+
 
 MathDecorationInset::MathDecorationInset(latexkeys const * key)
        : MathNestInset(1), key_(key)
 {}
 
 
-InsetBase * MathDecorationInset::clone() const
+auto_ptr<InsetBase> MathDecorationInset::clone() const
 {
-       return new MathDecorationInset(*this);
+       return auto_ptr<InsetBase>(new MathDecorationInset(*this));
 }