Le 05/01/2026 à 22:11, Stephan Witt via lyx-devel a écrit :
I think there are many places to improve the code and use the appropriate types
for local variables, method parameters or loop indices.
The attached small example patch reduces the number of warnings from 280 to 269.
I'd say go for it, but tread carefully.
Concerning the patch:
The first hunk can advantageously be replaced by a use of abs.back().
Concerning the use of idx_type: I see that MathData has its own
idx_type, which is the same as the main one. However, it seems unused. I
suggest removing it.
However, one has to be more careful about pos_type, which has a
different definition in MathData. I would propose removing this second
definition too, but this needs to be evaluated.
JMarc
--
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel