]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_kerninset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_kerninset.C
index 19658fa516742ec3bb693bb49ac9aa7813cd241d..ff11550a65f98c3c7b6d386741dbef7016948e11 100644 (file)
@@ -7,6 +7,8 @@
 #include "math_streamstr.h"
 #include "math_support.h"
 
+using std::auto_ptr;
+
 
 MathKernInset::MathKernInset()
 {}
@@ -22,17 +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));
 }
 
 
-void MathKernInset::metrics(MetricsInfo & mi) const
+void MathKernInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       dim_.wid = wid_.inPixels(0, mathed_char_width(mi.base.font, 'M'));
-       dim_.asc = 0;
-       dim_.des = 0;
+       dim.wid = wid_.inPixels(0, mathed_char_width(mi.base.font, 'M'));
+       dim.asc = 0;
+       dim.des = 0;
 }