On Wednesday 02 October 2002 7:17 am, Andre Poenitz wrote:
> On Wed, Oct 02, 2002 at 11:45:15AM +0900, Rob Lahaye wrote:
> > but my compiler doesn't like this and complains that the
> > second "input" is unknown. Is my compiler funny, or is this
> > example code wrong?
>
> I think the code is wrong.
>
> >    CheckedGlueLength::CheckedGlueLength(FL_OBJECT * input,
> >                                         FL_OBJECT * label)
> >                : input_(input), label_(label ? label : input)
> >    {
> >           lyx::Assert(input && input->objclass == FL_INPUT);
> >    }
> >
> > Is that acceptable C++ coding?
>
> For me yes.

Rob, here's an updated patch to replace what you have already. 
It incorporates some bugfixes, your suggestions and most of 
those made by Allan (off-list).

It also gives you a checkLyXLength() function for ... well, you 
know.

I suspect that you'lll be able to simplify those input() methods 
considerably.

Keep up the good work!

Regards,
Angus

Attachment: checked_widgets.diff.gz
Description: GNU Zip compressed data

Reply via email to