]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_commentinset.C
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / mathed / math_commentinset.C
index 1113671d0cfb9851bbcd685baa81eebb9f463eb4..8c9247cb4342db6b18adeb456fb9ec7f33c8d415 100644 (file)
@@ -8,6 +8,8 @@
 #include "support/LOstream.h"
 #include "textpainter.h"
 
+using std::auto_ptr;
+
 
 MathCommentInset::MathCommentInset()
        : MathNestInset(1)
@@ -21,9 +23,9 @@ MathCommentInset::MathCommentInset(string const & str)
 }
 
 
-InsetBase * MathCommentInset::clone() const
+auto_ptr<InsetBase> MathCommentInset::clone() const
 {
-       return new MathCommentInset(*this);
+       return auto_ptr<InsetBase>(new MathCommentInset(*this));
 }