Re: Factoring code

2003-02-26 Thread Andre Poenitz
On Wed, Feb 26, 2003 at 10:55:19AM +, Angus Leeming wrote: > André, attached is my attempt to refactor the code below using > RefInset::localDispatch and so get rid of dynamic_cast. > > LFUN_REF_APPLY now passes control to localDispatch if an existing reference > inset is 'open'. If no such

Factoring code

2003-02-26 Thread Angus Leeming
André, attached is my attempt to refactor the code below using RefInset::localDispatch and so get rid of dynamic_cast. LFUN_REF_APPLY now passes control to localDispatch if an existing reference inset is 'open'. If no such inset exists, then it inserts a new inset at the current cursor position