]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNumber.cpp
revert last patch. there's something wrong, possibly unrelated to this
[lyx.git] / src / mathed / InsetMathNumber.cpp
index 5247af48770d27880e22b1a6d885c571653377cc..62017795bdebf693cc9e0ecdceaa70af150ee87f 100644 (file)
 #include "MathStream.h"
 #include "MathSupport.h"
 
+using namespace std;
 
-namespace lyx {
 
-using std::string;
-using std::auto_ptr;
-using std::vector;
+namespace lyx {
 
 InsetMathNumber::InsetMathNumber(docstring const & s)
        : str_(s)
 {}
 
 
-auto_ptr<Inset> InsetMathNumber::doClone() const
+Inset * InsetMathNumber::clone() const
 {
-       return auto_ptr<Inset>(new InsetMathNumber(*this));
+       return new InsetMathNumber(*this);
 }
 
 
-bool InsetMathNumber::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetMathNumber::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        mathed_string_dim(mi.base.font, str_, dim);
-       if (dim_ == dim)
-               return false;
-       dim_ = dim;
-       return true;
 }