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 /sfx2 | |
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 'sfx2')
-rw-r--r-- | sfx2/source/doc/doctempl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx index 04c997564405..a7fcb4c8b3fd 100644 --- a/sfx2/source/doc/doctempl.cxx +++ b/sfx2/source/doc/doctempl.cxx @@ -529,7 +529,7 @@ OUString SfxDocumentTemplates::ConvertResourceString(const OUString& rString) STR_TEMPLATE_NAME30 }; - assert(SAL_N_ELEMENTS(aTemplateNames) == SAL_N_ELEMENTS(STR_TEMPLATE_NAME)); + static_assert(SAL_N_ELEMENTS(aTemplateNames) == SAL_N_ELEMENTS(STR_TEMPLATE_NAME)); for (size_t i = 0; i < SAL_N_ELEMENTS(STR_TEMPLATE_NAME); ++i) { |