]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_exfuncinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_exfuncinset.C
index e0b6e1c049908d2af01910e2ad8b8a6aa26a8c53..a7079179c639d5e5c0a5630e0fb85fc07486010a 100644 (file)
@@ -1,4 +1,3 @@
-
 #include <config.h>
 
 #include "math_exfuncinset.h"
@@ -6,6 +5,8 @@
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
 
+using std::auto_ptr;
+
 
 MathExFuncInset::MathExFuncInset(string const & name)
        : MathNestInset(1), name_(name)
@@ -19,19 +20,19 @@ MathExFuncInset::MathExFuncInset(string const & name, MathArray const & ar)
 }
 
 
-MathInset * MathExFuncInset::clone() const
+auto_ptr<InsetBase> MathExFuncInset::clone() const
 {
-       return new MathExFuncInset(*this);
+       return auto_ptr<InsetBase>(new MathExFuncInset(*this));
 }
 
 
-void MathExFuncInset::metrics(MathMetricsInfo & mi) const
+void MathExFuncInset::metrics(MetricsInfo & mi, Dimension & /*dim*/) const
 {
        mathed_string_dim(mi.base.font, name_, dim_);
 }
 
 
-void MathExFuncInset::draw(MathPainterInfo & pi, int x, int y) const
+void MathExFuncInset::draw(PainterInfo & pi, int x, int y) const
 {
        drawStrBlack(pi, x, y, name_);
 }