[LyX/master] Math: add a structure to hold font information.
Thibaut Cuvelier
dourouc05 at gmail.com
Wed Oct 30 01:06:59 UTC 2024
I have just pushed 110e654b. I tried to run with the hare and hunt with the
hounds: I'm not using default:, I'm adding runtime warnings in case
something unexpected happens, and I'm always returning a non-problematic
value.
Thibaut Cuvelier
On Tue, 29 Oct 2024 at 20:54, Pavel Sanda <sanda at lyx.org> wrote:
> On Tue, Oct 29, 2024 at 08:22:29PM +0100, Jean-Marc Lasgouttes wrote:
> > I am not sure what you mean, Pavel. Not using default: is better in
> general. We should use it only in cases where the number of enum members is
> too large(for example in dispatch+)).
>
> I thought that we generally do default, but you are right, looking
> at the code, it's specific to dispatch routines. Apparently I am too
> paranoid people for doing dirty stuff like directly passing ints...
>
> Is using at least do return "" at the very end of the function
> or use some local variable like in toHTMLSpanClass() so that
> we always return something well defined considered sensible here?
>
> Pavel
> --
> lyx-devel mailing list
> lyx-devel at lists.lyx.org
> https://lists.lyx.org/mailman/listinfo/lyx-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20241030/9bac142f/attachment.htm>
More information about the lyx-devel
mailing list