]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macroarg.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_macroarg.C
index 0e3ea48aadbbd01e48619f204c741786bf9ce5b0..09f3626f7ea23084f7637bd7820c2253306a33f3 100644 (file)
@@ -4,8 +4,8 @@
 #include "math_support.h"
 #include "debug.h"
 
-
 using std::endl;
+using std::auto_ptr;
 
 
 MathMacroArgument::MathMacroArgument(int n)
@@ -21,9 +21,9 @@ MathMacroArgument::MathMacroArgument(int n)
 }
 
 
-MathInset * MathMacroArgument::clone() const
+auto_ptr<InsetBase> MathMacroArgument::clone() const
 {
-       return new MathMacroArgument(*this);
+       return auto_ptr<InsetBase>(new MathMacroArgument(*this));
 }