]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_fontoldinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_fontoldinset.C
index 86661d0159e1ea8640e3df7f94f8e45f4755c834..8c603178c846fa3166292c9f1e546636668486f9 100644 (file)
@@ -10,6 +10,7 @@
 #include "support/LOstream.h"
 #include "frontends/Painter.h"
 
+using std::auto_ptr;
 
 
 MathFontOldInset::MathFontOldInset(latexkeys const * key)
@@ -19,18 +20,18 @@ MathFontOldInset::MathFontOldInset(latexkeys const * key)
 }
 
 
-MathInset * MathFontOldInset::clone() const
+auto_ptr<InsetBase> MathFontOldInset::clone() const
 {
-       return new MathFontOldInset(*this);
+       return auto_ptr<InsetBase>(new MathFontOldInset(*this));
 }
 
 
-Dimension MathFontOldInset::metrics(MetricsInfo & mi) const
+void MathFontOldInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        FontSetChanger dummy(mi.base, key_->name.c_str());
        cell(0).metrics(mi, dim_);
        metricsMarkers(1);
-       return dim_;
+       dim = dim_;
 }