Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

| >>>>> "John" == John Levon <[EMAIL PROTECTED]> writes:
| 
| John> The attached patch
| John> quashes some harmless warnings in FormMaths.
| 
|       MathsCallbackValues val = static_cast<MathsCallbackValues>(data);
|  
| -     lyxerr[Debug::GUI] << "Maths button CB val " << val << endl;
| +     lyxerr[Debug::GUI] << "Maths button CB val " << long(val) << endl;
| 
| Why don't you just send "data" to lyxerr? This would avoid the cast.

Or (as we do elsewhere) add a operator<<(MathsCallbackValues);
That is the cleaner solution imho.

        Lgb

Reply via email to