diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-11-03 16:39:30 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-11-03 20:56:08 +0100 |
commit | ff22a3ff99da3abc0531c5a4eeccc25d45b61adb (patch) | |
tree | 315c192a78308c2a7c1ba632aa487f0253c7c2f9 | |
parent | 913c9aa8f5bb681b3437d21b0d18c02627e99ad6 (diff) |
Add back `== 2`
...that got lost in 23c8da878529f85ba5045db6f7ea7956a64dfc72 "put the message
into static_assert" (causing a loplugin:consttobool warning)
Change-Id: I8f2a97bd61edbfad0c871c0d2d0e25f1ce9f9f98
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124658
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | extensions/source/propctrlr/formcomponenthandler.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index ebb30470a6db..5d4625db8f10 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -519,7 +519,7 @@ namespace pcr if( ! (_rControlValue >>= sControlValue) ) SAL_WARN("extensions.propctrlr", "convertToControlValue: unable to get property for Show/Hide"); - static_assert(SAL_N_ELEMENTS(RID_RSC_ENUM_SHOWHIDE), "FormComponentPropertyHandler::convertToPropertyValue: broken resource for Show/Hide!"); + static_assert(SAL_N_ELEMENTS(RID_RSC_ENUM_SHOWHIDE) == 2, "FormComponentPropertyHandler::convertToPropertyValue: broken resource for Show/Hide!"); bool bShow = sControlValue == PcrRes(RID_RSC_ENUM_SHOWHIDE[1]); aPropertyValue <<= bShow; |