using std::ostream;
using std::max;
+using std::auto_ptr;
InsetSpecialChar::InsetSpecialChar(Kind k)
dim.wid = font_metrics::width(s, font);
if (kind_ == HYPHENATION && dim.wid > 5)
dim.wid -= 2; // to make it look shorter
+ dim_ = dim;
}
}
-InsetBase * InsetSpecialChar::clone() const
+auto_ptr<InsetBase> InsetSpecialChar::clone() const
{
- return new InsetSpecialChar(kind_);
+ return auto_ptr<InsetBase>(new InsetSpecialChar(kind_));
}