]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_spaceinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_spaceinset.C
index 677394fef74bb4aa9a497cb3a660250bfa423350..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)
 }
 
 
-InsetBase * MathSpaceInset::clone() const
+auto_ptr<InsetBase> MathSpaceInset::clone() const
 {
-       return new MathSpaceInset(*this);
+       return auto_ptr<InsetBase>(new MathSpaceInset(*this));
 }