Re: getting rid of PL_StruxFmtHandle?

From: Martin Sevior <msevior_at_physics.unimelb.edu.au>
Date: Wed Mar 07 2007 - 02:50:00 CET

On Tue, 2007-03-06 at 20:48 -0500, Hubert Figuiere wrote:
> PL_StruxFmtHandle is defined as a void *. Then it is cast away virtually
> everywhere. Doesn't that defeat the purpose of strong typing that C++
> provides?
>
> If looks like it is not an easy take, but what about suppressing it?
> What would be the base type? fl_Layout*
>

Yes. That is right. fl_Layout * is the base class which should be
passed around.

> Same question for PL_StruxDocHandle. Would it be pf_Frag_Strux* or
> pf_Frag* ?
>

It should be a pf_Frag_Strux *.

I'm pretty sure it was cast to void * to enable AbiWord to utilize the
old UT_Vector class.

Cheers

Martin

> Thanks for the feedback.
>
> Hub
Received on Wed Mar 7 02:59:09 2007

This archive was generated by hypermail 2.1.8 : Wed Mar 07 2007 - 02:59:10 CET