Re: [Libxmlplusplus-general] SAXParser: preventing expansion of predefined entities



On Wed, 2002-12-11 at 14:07, Jonathan Wakely wrote:
> While I'm at it, I'm wondering why the callbacks say:
> 
>   SaxParser *parser = (SaxParser *) _parser;
>   parser->on_start_document();
> 
> rather than the "proper C++" style
> 
>   SaxParser *parser = static_cast<SaxParser*>(_parser);
>   parser->on_start_document();

That's probably fine, and better.

> 
> or even (my personal preference), without the local variable
> 
>   static_cast<SaxParser*>(_parser)->on_start_document();

Personally, I like to do one thing per line.

-- 
Murray Cumming
murray usa net
www.murrayc.com





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]