]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_symbolinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_symbolinset.C
index 85df4b3723d62a6c70363f5e995d146ad5a8c119..809e25464936f7767aa67635eb58e474c670f171 100644 (file)
@@ -1,4 +1,3 @@
-
 #include <config.h>
 
 #include "math_symbolinset.h"
 #include "LaTeXFeatures.h"
 #include "debug.h"
 
+using std::auto_ptr;
+
 
-MathSymbolInset::MathSymbolInset(const latexkeys * l)
+MathSymbolInset::MathSymbolInset(latexkeys const * l)
        : sym_(l), h_(0)
 {}
 
 
-MathSymbolInset::MathSymbolInset(const char * name)
+MathSymbolInset::MathSymbolInset(char const * name)
        : sym_(in_word_set(name)), h_(0)
 {}
 
@@ -27,10 +28,9 @@ MathSymbolInset::MathSymbolInset(string const & name)
 {}
 
 
-
-InsetBase * MathSymbolInset::clone() const
+auto_ptr<InsetBase> MathSymbolInset::clone() const
 {
-       return new MathSymbolInset(*this);
+       return auto_ptr<InsetBase>(new MathSymbolInset(*this));
 }