]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathEnv.cpp
revert last patch. there's something wrong, possibly unrelated to this
[lyx.git] / src / mathed / InsetMathEnv.cpp
index 110d09b2597bda01cbd4fdabc8bc0961efbd28d0..82460b986c539f7a8857eca038824f4849726de7 100644 (file)
 #include <config.h>
 
 #include "InsetMathEnv.h"
+
 #include "MathData.h"
 #include "MathStream.h"
 #include "MathStream.h"
-#include "support/std_ostream.h"
-
 
-namespace lyx {
+#include <ostream>
 
 
-using std::string;
-using std::auto_ptr;
-
+namespace lyx {
 
 InsetMathEnv::InsetMathEnv(docstring const & name)
        : InsetMathNest(1), name_(name)
 {}
 
 
-auto_ptr<InsetBase> InsetMathEnv::doClone() const
+Inset * InsetMathEnv::clone() const
 {
-       return auto_ptr<InsetBase>(new InsetMathEnv(*this));
+       return new InsetMathEnv(*this);
 }
 
 
-bool InsetMathEnv::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetMathEnv::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        cell(0).metrics(mi, dim);
        metricsMarkers(dim);
-       if (dim_ == dim)
-               return false;
-       dim_ = dim;
-       return true;
 }