]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_inferinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_inferinset.C
index f25f8ee6b8599b8889f1ef92a131017e1a605aa8..338cb3142a4fdde9132bd52ce12ebd78c83b0ceb 100644 (file)
@@ -1,31 +1,29 @@
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "math_inferinset.h"
 #include "math_support.h"
 #include "frontends/Painter.h"
 #include "math_mathmlstream.h"
 #include "textpainter.h"
 
+using std::auto_ptr;
+
 
 MathInferInset::MathInferInset()
        : MathGridInset(1, 1)
 {}
 
 
-MathInset * MathInferInset::clone() const
+auto_ptr<InsetBase> MathInferInset::clone() const
 {
-       return new MathInferInset(*this);
+       return auto_ptr<InsetBase>(new MathInferInset(*this));
 }
 
 
-void MathInferInset::metrics(MathMetricsInfo &) const
+void MathInferInset::metrics(MetricsInfo &, Dimension &) const
 {
 }
 
 
-void MathInferInset::draw(MathPainterInfo &, int, int) const
+void MathInferInset::draw(PainterInfo &, int, int) const
 {
 }