]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_exintinset.C
enable direct input of #1...#9; some whitespace changes
[lyx.git] / src / mathed / math_exintinset.C
index ba21ff6dca3667e069c4476981ad6eaa0783ebda..81e6b8398049e5a14aa87ee218af9a3c415b6da1 100644 (file)
@@ -7,6 +7,8 @@
 #include "math_symbolinset.h"
 #include "debug.h"
 
+#include <boost/smart_ptr.hpp>
+
 using std::endl;
 
 
@@ -75,12 +77,11 @@ void MathExIntInset::maplize(MapleStream & os) const
 
 void MathExIntInset::mathmlize(MathMLStream & os) const
 {
-       MathSymbolInset * sym = new MathSymbolInset(symbol_);
+       boost::scoped_ptr<MathSymbolInset> sym(new MathSymbolInset(symbol_));
        //if (hasScripts())
        //      mathmlize(sym, os);
        //else 
                sym->mathmlize(os);
-       delete sym;
        os << cell(0) << "<mo> &InvisibleTimes; </mo>"
           << MTag("mrow") << "<mo> &DifferentialD; </mo>"
           << cell(1) << ETag("mrow");