On Thu, Nov 13, 2003 at 10:07:46AM +0000, [EMAIL PROTECTED] wrote:
> 
> >                 } else {
> >>                         FuncRequest cmd2 = cmd;
> >>                         cmd2.action = LFUN_INSET_INSERT;
> >>                         dispatch(cmd2);
> >>                 }
> >
> >Is that else-branch equivalent to
> >
> >                 } else {
> >                    doInsertInset(this, cmd, true, false);
> >                 }
> >                 break;
> 
> Not quite. The latter calls createInset (in factory.C) directly.

That's why I was asking. Is there a possiblility that the FuncRequest is
handled by some other dispatch or are we always ending up calling
doInsertInset()?

If so, I'd prefer the non-convoluted direct call, otherwise obviuosly
not.

Andre'

Reply via email to