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