]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_charinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_charinset.C
index b1b2a333283fd80e7bddb26ced6560b23f459f0f..2c02372832a62f5c84714a6c6ea3a40cb2f5552e 100644 (file)
@@ -18,6 +18,7 @@
 
 using std::ostream;
 using std::endl;
+using std::auto_ptr;
 
 #ifndef CXX_GLOBAL_CSTD
 using std::strchr;
@@ -49,9 +50,9 @@ MathCharInset::MathCharInset(char c)
 
 
 
-InsetBase * MathCharInset::clone() const
+auto_ptr<InsetBase> MathCharInset::clone() const
 {
-       return new MathCharInset(*this);
+       return auto_ptr<InsetBase>(new MathCharInset(*this));
 }
 
 
@@ -80,7 +81,7 @@ void MathCharInset::metrics(MetricsInfo & mi, Dimension & dim) const
        mathed_char_dim(font_, char_, dim_);
        if (isBinaryOp(char_, code_))
                width_ += 2 * font_metrics::width(' ', font_);
-       lyxerr << "MathCharInset::metrics: " << dim << "\n";
+       lyxerr << "MathCharInset::metrics: " << dim << endl;
 #endif
 }