X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_envinset.C;h=d0a282f1e794e75b45114fc7e6d79dbacaf80183;hb=1ecc7b79cdf95de50f2683fb7a8f983b5dcdf0d2;hp=42b9dac39ee2d226e25c1359f474b0f7f3062a89;hpb=2a5ab60ce880dea3719832844ee857275b837019;p=lyx.git diff --git a/src/mathed/math_envinset.C b/src/mathed/math_envinset.C index 42b9dac39e..d0a282f1e7 100644 --- a/src/mathed/math_envinset.C +++ b/src/mathed/math_envinset.C @@ -1,9 +1,24 @@ +/** + * \file math_envinset.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 #include "math_envinset.h" +#include "math_data.h" #include "math_mathmlstream.h" #include "math_streamstr.h" -#include "support/LOstream.h" +#include "support/std_ostream.h" + + +using std::string; +using std::auto_ptr; MathEnvInset::MathEnvInset(string const & name) @@ -11,17 +26,17 @@ MathEnvInset::MathEnvInset(string const & name) {} -InsetBase * MathEnvInset::clone() const +auto_ptr MathEnvInset::clone() const { - return new MathEnvInset(*this); + return auto_ptr(new MathEnvInset(*this)); } void MathEnvInset::metrics(MetricsInfo & mi, Dimension & dim) const { - cell(0).metrics(mi, dim_); - metricsMarkers(); - dim = dim_; + cell(0).metrics(mi, dim); + metricsMarkers(dim); + dim_ = dim; }