Tommaso Cucinotta | 6 Jan 2010 11:43
Favicon

Re: r32678 - in lyx-devel/trunk/src: . frontends frontends/qt4

Vincent van Ravesteijn - TNW wrote:
>> I'd also want to figure out some way to allow just the
>> DispatchResult member to be modified, even when FuncRequest
>> is const. 
>>     
> You mean you want to declare it "mutable" ?
>   
I thought to this option as well, but I think it would probably be even 
worse as a hack.
Instead, what would be needed is exactly what is already in Buffer.h:

  void dispatch(FuncRequest const & func, DispatchResult & result);

So you're free to supply FuncRequest as it is now, but the problem is 
that all of the dispatch() invocations need to be reworked so as to pass 
the additional result around.

    T.


Gmane