#include "InsetMathLim.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;
}
-auto_ptr<InsetBase> InsetMathLim::doClone() const
+Inset * InsetMathLim::clone() const
{
- return auto_ptr<InsetBase>(new InsetMathLim(*this));
+ return new InsetMathLim(*this);
}
}
-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");
}
void InsetMathLim::write(WriteStream &) const
{
- lyxerr << "should not happen" << endl;
+ LYXERR0("should not happen");
}