]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathLim.cpp
Fix bug 5802 (http://bugzilla.lyx.org/show_bug.cgi?id=5802)
[lyx.git] / src / mathed / InsetMathLim.cpp
index 3fdd3b5e8abb530d93d1e6e81be22daff6d0f5b6..508acc237e6c0daf17e4e8ef0a7371e9dbb36e7a 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
 #include <config.h>
 
 #include "InsetMathLim.h"
-#include "MathArray.h"
+#include "MathData.h"
 #include "MathStream.h"
-#include "debug.h"
 
+#include "support/debug.h"
 
-namespace lyx {
-
-using std::auto_ptr;
-using std::endl;
 
+namespace lyx {
 
 InsetMathLim::InsetMathLim
-       (MathArray const & f, MathArray const & x, MathArray const & x0)
+       (MathData const & f, MathData const & x, MathData const & x0)
        : InsetMathNest(3)
 {
        cell(0) = f;
@@ -32,9 +29,9 @@ InsetMathLim::InsetMathLim
 }
 
 
-auto_ptr<InsetBase> InsetMathLim::doClone() const
+Inset * InsetMathLim::clone() const
 {
-       return auto_ptr<InsetBase>(new InsetMathLim(*this));
+       return new InsetMathLim(*this);
 }
 
 
@@ -44,16 +41,15 @@ void InsetMathLim::normalize(NormalStream & os) const
 }
 
 
-bool InsetMathLim::metrics(MetricsInfo &, Dimension &) const
+void InsetMathLim::metrics(MetricsInfo &, Dimension &) const
 {
-       lyxerr << "should not happen" << endl;
-       return true;
+       LYXERR0("should not happen");
 }
 
 
 void InsetMathLim::draw(PainterInfo &, int, int) const
 {
-       lyxerr << "should not happen" << endl;
+       LYXERR0("should not happen");
 }
 
 
@@ -83,7 +79,7 @@ void InsetMathLim::mathmlize(MathStream & os) const
 
 void InsetMathLim::write(WriteStream &) const
 {
-       lyxerr << "should not happen" << endl;
+       LYXERR0("should not happen");
 }