]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/command_inset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / command_inset.C
index 77570665d6d14f7857d04a1a6ac2ab2fde0e0ce7..f818b56a8007dd299df1b4db689bfeb9ba1825e8 100644 (file)
@@ -1,9 +1,10 @@
-
 #include "command_inset.h"
 #include "math_mathmlstream.h"
 #include "funcrequest.h"
 #include "Lsstream.h"
 
+using std::auto_ptr;
+
 
 CommandInset::CommandInset(string const & name)
        : MathNestInset(2),
@@ -14,9 +15,9 @@ CommandInset::CommandInset(string const & name)
 }
 
 
-InsetBase * CommandInset::clone() const
+auto_ptr<InsetBase> CommandInset::clone() const
 {
-       return new CommandInset(*this);
+       return auto_ptr<InsetBase>(new CommandInset(*this));
 }