]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_kerninset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_kerninset.C
index cf7cb756119a6223536e5b819c3df6daefd8a43d..ff11550a65f98c3c7b6d386741dbef7016948e11 100644 (file)
@@ -7,6 +7,8 @@
 #include "math_streamstr.h"
 #include "math_support.h"
 
+using std::auto_ptr;
+
 
 MathKernInset::MathKernInset()
 {}
@@ -22,19 +24,17 @@ MathKernInset::MathKernInset(string const & s)
 {}
 
 
-MathInset * MathKernInset::clone() const
+auto_ptr<InsetBase> MathKernInset::clone() const
 {
-       return new MathKernInset(*this);
+       return auto_ptr<InsetBase>(new MathKernInset(*this));
 }
 
 
-Dimension MathKernInset::metrics(MetricsInfo & mi) const
+void MathKernInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       Dimension dim;
        dim.wid = wid_.inPixels(0, mathed_char_width(mi.base.font, 'M'));
        dim.asc = 0;
        dim.des = 0;
-       return dim;
 }