diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-11-03 09:22:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-11-03 11:57:03 +0100 |
commit | 23c8da878529f85ba5045db6f7ea7956a64dfc72 (patch) | |
tree | 9a3d2cd902bb270fc3b34068eff8bd6d13a9a06e /sw | |
parent | 7ab9d4caddcf3e2b4e1f5541ebd85f4559bff615 (diff) |
put the message into static_assert
and use more static_assert where its obviously possible
Change-Id: I9466130809acab12505f0760f970793991564165
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124633
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/utlui/initui.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/utlui/initui.cxx b/sw/source/uibase/utlui/initui.cxx index 740152dd89ad..4438935585b9 100644 --- a/sw/source/uibase/utlui/initui.cxx +++ b/sw/source/uibase/utlui/initui.cxx @@ -185,7 +185,7 @@ void ShellResource::GetAutoFormatNameLst_() const mxAutoFormatNameLst.emplace(); mxAutoFormatNameLst->reserve(STR_AUTOFMTREDL_END); - assert(SAL_N_ELEMENTS(RID_SHELLRES_AUTOFMTSTRS) == STR_AUTOFMTREDL_END); + static_assert(SAL_N_ELEMENTS(RID_SHELLRES_AUTOFMTSTRS) == STR_AUTOFMTREDL_END); for (sal_uInt16 n = 0; n < STR_AUTOFMTREDL_END; ++n) { OUString p(SwResId(RID_SHELLRES_AUTOFMTSTRS[n])); |