]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_stringinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_stringinset.C
index 0dc71e7bb6807ec07b3b0be9502798978038017a..b1dcddae5c0cf01e33e3cbc51a0412cb8451f7ba 100644 (file)
@@ -7,23 +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));
 }
 
 
-Dimension MathStringInset::metrics(MetricsInfo & mi) const
+void MathStringInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       Dimension dim;
        mathed_string_dim(mi.base.font, str_, dim);
-       return dim;
 }