]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathComment.cpp
InsetMathHull.cpp: whitespace
[lyx.git] / src / mathed / InsetMathComment.cpp
index 3faf7134335e30df1434879ccbb6d40b5cdb7ab4..5bf046d08e87e229ab2a711024a056540d82ff04 100644 (file)
 #include <config.h>
 
 #include "InsetMathComment.h"
-#include "MathArray.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<InsetBase> InsetMathComment::doClone() const
+Inset * InsetMathComment::clone() const
 {
-       return auto_ptr<InsetBase>(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;
 }