]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_braceinset.C
Compile fix gcc 2.95 + stlport
[lyx.git] / src / mathed / math_braceinset.C
index 524fe4e6731149d89ada8c75690a4ab8a30e9a23..aa7b914896c9205f76f3804d446df960101fa011 100644 (file)
@@ -1,12 +1,24 @@
+/**
+ * \file math_braceinset.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #include <config.h>
 
 #include "math_braceinset.h"
-#include "math_parser.h"
-#include "math_support.h"
+#include "math_data.h"
 #include "math_mathmlstream.h"
-#include "support/LOstream.h"
+#include "math_support.h"
+#include "LColor.h"
+#include "support/std_ostream.h"
 
 using std::max;
+using std::auto_ptr;
 
 
 MathBraceInset::MathBraceInset()
@@ -21,13 +33,13 @@ MathBraceInset::MathBraceInset(MathArray const & ar)
 }
 
 
-MathInset * MathBraceInset::clone() const
+auto_ptr<InsetBase> MathBraceInset::clone() const
 {
-       return new MathBraceInset(*this);
+       return auto_ptr<InsetBase>(new MathBraceInset(*this));
 }
 
 
-Dimension MathBraceInset::metrics(MetricsInfo & mi) const
+void MathBraceInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        cell(0).metrics(mi);
        Dimension t;
@@ -36,7 +48,7 @@ Dimension MathBraceInset::metrics(MetricsInfo & mi) const
        dim_.asc = max(cell(0).ascent(), t.asc);
        dim_.des = max(cell(0).descent(), t.des);
        dim_.wid = cell(0).width() + 2 * wid_;
-       return dim_;
+       dim = dim_;
 }