]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathComment.cpp
revert last patch. there's something wrong, possibly unrelated to this
[lyx.git] / src / mathed / InsetMathComment.cpp
index 57d74a9499f748fee2b5f575c4b3bc2e779e663b..5bf046d08e87e229ab2a711024a056540d82ff04 100644 (file)
 #include <config.h>
 
 #include "InsetMathComment.h"
+
 #include "MathData.h"
 #include "MathStream.h"
 #include "MathSupport.h"
-#include "support/std_ostream.h"
-
 
-namespace lyx {
+#include <ostream>
 
-using std::string;
-using std::auto_ptr;
 
+namespace lyx {
 
 InsetMathComment::InsetMathComment()
        : InsetMathNest(1)
@@ -36,20 +34,16 @@ InsetMathComment::InsetMathComment(docstring const & str)
 }
 
 
-auto_ptr<Inset> InsetMathComment::doClone() const
+Inset * InsetMathComment::clone() const
 {
-       return auto_ptr<Inset>(new InsetMathComment(*this));
+       return new InsetMathComment(*this);
 }
 
 
-bool InsetMathComment::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetMathComment::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        cell(0).metrics(mi, dim);
        metricsMarkers(dim);
-       if (dim_ == dim)
-               return false;
-       dim_ = dim;
-       return true;
 }