]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_boxinset.C
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / mathed / math_boxinset.C
index 6a292bb5cbda4a86f373a011b6208c3c74b4495f..28b3da4f45098bbe937b0e0e10e38d2798f48928 100644 (file)
@@ -6,15 +6,17 @@
 #include "math_streamstr.h"
 #include "support/LOstream.h"
 
+using std::auto_ptr;
+
 
 MathBoxInset::MathBoxInset(string const & name)
        : MathNestInset(1), name_(name)
 {}
 
 
-InsetBase * MathBoxInset::clone() const
+auto_ptr<InsetBase> MathBoxInset::clone() const
 {
-       return new MathBoxInset(*this);
+       return auto_ptr<InsetBase>(new MathBoxInset(*this));
 }