]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_stringinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_stringinset.C
index d8a37291bbbfb8ee28c0db9ff93e0783477883b9..b1dcddae5c0cf01e33e3cbc51a0412cb8451f7ba 100644 (file)
@@ -7,21 +7,23 @@
 #include "math_support.h"
 #include "debug.h"
 
+using std::auto_ptr;
+
 
 MathStringInset::MathStringInset(string const & s)
        : str_(s)
 {}
 
 
-MathInset * MathStringInset::clone() const
+auto_ptr<InsetBase> MathStringInset::clone() const
 {
-       return new MathStringInset(*this);
+       return auto_ptr<InsetBase>(new MathStringInset(*this));
 }
 
 
-void MathStringInset::metrics(MetricsInfo & mi) const
+void MathStringInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       mathed_string_dim(mi.base.font, str_, dim_);
+       mathed_string_dim(mi.base.font, str_, dim);
 }