]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_dotsinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_dotsinset.C
index a1ba4d2133c0309781721497a8bd8fd842bbfd1a..086c6c658f3c85f5aa52ac7ecd4add0290aef56b 100644 (file)
@@ -6,19 +6,21 @@
 #include "math_support.h"
 #include "math_parser.h"
 
+using std::auto_ptr;
+
 
 MathDotsInset::MathDotsInset(latexkeys const * key)
        : key_(key)
 {}
 
 
-MathInset * MathDotsInset::clone() const
+auto_ptr<InsetBase> MathDotsInset::clone() const
 {
-       return new MathDotsInset(*this);
+       return auto_ptr<InsetBase>(new MathDotsInset(*this));
 }
 
 
-Dimension MathDotsInset::metrics(MetricsInfo & mi) const
+void MathDotsInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        mathed_char_dim(mi.base.font, 'M', dim_);
        dh_ = 0;
@@ -33,7 +35,7 @@ Dimension MathDotsInset::metrics(MetricsInfo & mi) const
        }
        else if (key_->name == "ddots")
                dh_ = dim_.asc;
-       return dim_;
+       dim = dim_;
 }