tdf#145614 Convert #define JMP_TABLE_SIZE to constexpr

Change-Id: Iedc40d790a4822d0cb65480e1e4b64439de39db5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183496
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
This commit is contained in:
Simon Chenery
2025-03-29 22:02:11 +01:00
committed by Ilmari Lauhakangas
parent 722073473b
commit 50cf101df5

View File

@@ -46,7 +46,7 @@ void SbiParser::If()
// At the end of each block a jump to ENDIF must be inserted,
// so that the condition is not evaluated again at ELSEIF.
// The table collects all jump points.
#define JMP_TABLE_SIZE 100
constexpr sal_uInt16 JMP_TABLE_SIZE = 100;
sal_uInt32 pnJmpToEndLbl[JMP_TABLE_SIZE]; // 100 ELSEIFs allowed
sal_uInt16 iJmp = 0; // current table index