]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_spaceinset.C
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / mathed / math_spaceinset.C
index 0d2ee4e7cc6d42129e73c0b345092b31044da58f..155d955f0fa277257c991a7baf658b5ccf170fd0 100644 (file)
@@ -1,4 +1,3 @@
-
 #include "math_spaceinset.h"
 #include "math_data.h"
 #include "math_support.h"
@@ -8,6 +7,8 @@
 #include "LaTeXFeatures.h"
 #include "debug.h"
 
+using std::auto_ptr;
+
 
 char const * latex_mathspace[] = {
        "!", "negmedspace", "negthickspace",  // negative space
@@ -32,9 +33,9 @@ MathSpaceInset::MathSpaceInset(string const & name)
 }
 
 
-MathInset * MathSpaceInset::clone() const
+auto_ptr<InsetBase> MathSpaceInset::clone() const
 {
-       return new MathSpaceInset(*this);
+       return auto_ptr<InsetBase>(new MathSpaceInset(*this));
 }