]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macro.C
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / mathed / math_macro.C
index 7ec87a11fcdb6e285c359119b1821b7f305c88e6..486e29518ee04afa5b3b1455416bef73def71262 100644 (file)
@@ -14,6 +14,7 @@
  *  This code is under the GNU General Public Licence version 2 or later.
  */
 
+#include <config.h>
 
 #include "math_macro.h"
 #include "math_support.h"
@@ -29,6 +30,8 @@
 
 
 using std::max;
+using std::auto_ptr;
+using std::endl;
 
 
 MathMacro::MathMacro(string const & name)
@@ -44,9 +47,9 @@ MathMacro::MathMacro(MathMacro const & m)
 
 
 
-InsetBase * MathMacro::clone() const
+auto_ptr<InsetBase> MathMacro::clone() const
 {
-       return new MathMacro(*this);
+       return auto_ptr<InsetBase>(new MathMacro(*this));
 }
 
 
@@ -150,12 +153,12 @@ void MathMacro::draw(PainterInfo & pi, int x, int y) const
 void MathMacro::dump() const
 {
        MathMacroTable::dump();
-       lyxerr << "\n macro: '" << this << "'\n";
-       lyxerr << " name: '" << name() << "'\n";
-       lyxerr << " template: '";
+       lyxerr << "\n macro: '" << this << "'\n"
+              << " name: '" << name() << "'\n"
+              << " template: '";
        WriteStream wi(lyxerr);
        tmplate_->write(wi);
-       lyxerr << "'\n";
+       lyxerr << "'" << endl;
 }