Andre Poenitz wrote:
On Sat, Sep 29, 2007 at 09:31:22AM -0400, Richard Heck wrote:
Andre Poenitz wrote:
Can anybody think of a reason why ControlCharacter has a Font* member,
and not a Font?
I think it must be connected with these lines:
bool ControlCharacter::initialiseParams(string const &)
{
// Do this the first time only.
if (!font_.get())
font_.reset(new Font(Font::ALL_IGNORE));
But there are other ways to handle this.
This is independend of the passed argument _and_ done just once.
Doing it in the constructor looks pretty equivalent to me.
Indeed and it can be const too. You'd just have to set the different
needed properties at construction (IGNORE_XXX).
Abdel.