]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFont.cpp
* Inset:
[lyx.git] / src / mathed / InsetMathFont.cpp
index e079868a1a103f2a74fcc5cdcc64334aafc0c960..b6af0679c7b69622f4195029c1f11d24e842765c 100644 (file)
 
 namespace lyx {
 
-using std::auto_ptr;
-
-
 InsetMathFont::InsetMathFont(latexkeys const * key)
        : InsetMathNest(1), key_(key)
 {}
 
 
-auto_ptr<InsetBase> InsetMathFont::doClone() const
+Inset * InsetMathFont::clone() const
 {
-       return auto_ptr<InsetBase>(new InsetMathFont(*this));
+       return new InsetMathFont(*this);
 }
 
 
@@ -44,15 +41,12 @@ InsetMath::mode_type InsetMathFont::currentMode() const
 }
 
 
-bool InsetMathFont::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetMathFont::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        FontSetChanger dummy(mi.base, key_->name);
        cell(0).metrics(mi, dim);
        metricsMarkers(dim);
-       if (dim_ == dim)
-               return false;
        dim_ = dim;
-       return true;
 }