reportdesign/source/ui/report/ReportController.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 5e29b084eb0bfcfbc82622df5c445a6148531989 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Tue Oct 4 16:28:14 2022 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Mon Oct 10 17:41:55 2022 +0200 tdf#151260, tdf#84930: Use static_assert to check contiguous item ids Change-Id: I9af0ad625ddb80052f7f7783061218a8de1db5e4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140946 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx index 38034ffb81f0..fb389172985e 100644 --- a/reportdesign/source/ui/report/ReportController.cxx +++ b/reportdesign/source/ui/report/ReportController.cxx @@ -154,6 +154,8 @@ /// the static defaults. #define RPTUI_ID_METRIC XATTR_FILL_LAST +static_assert((RPTUI_ID_METRIC - RPTUI_ID_LRSPACE) == 28, "Item ids are not contiguous"); + using namespace ::com::sun::star; using namespace uno; using namespace io;