| commit | 5e29b084eb0bfcfbc82622df5c445a6148531989 | [log] |
|---|---|---|
| author | Xisco Fauli <xiscofauli@libreoffice.org> | Tue Oct 04 16:28:14 2022 +0200 |
| committer | Xisco Fauli <xiscofauli@libreoffice.org> | Mon Oct 10 17:41:55 2022 +0200 |
| tree | 4222e87758acd50ee5370e9f97b2e02fa8881df8 | |
| parent | 8b4ac8c35d5e4efe3c0b83e15543a35213e786f2 [diff] |
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 <xiscofauli@libreoffice.org>
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx index 38034ff..fb38917 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;