basic/source/classes/sb.cxx | 4 ++++ 1 file changed, 4 insertions(+) New commits: commit 7a349aa4f338982f99675ad4eed9d7474cab1ff0 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Wed Oct 18 15:24:13 2023 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Thu Oct 19 09:09:33 2023 +0200
Suppress some upcoming loplugin:ostr OUStringLiteral -> OUString rewrites ...which would not work, as calling constexpr SbxVariable::MakeHashCode on those vars would no longer be constant expressions Change-Id: Ib848a6405dc270a1a5b9a92084fa2d063ea37892 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158134 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index 9d3a7706189c..94b1becd04a5 100644 --- a/basic/source/classes/sb.cxx +++ b/basic/source/classes/sb.cxx @@ -1942,9 +1942,13 @@ void StarBASIC::DetachAllDocBasicItems() // #118116 Implementation Collection object +// [-loplugin:ostr] constexpr OUStringLiteral pCountStr = u"Count"; +// [-loplugin:ostr] constexpr OUStringLiteral pAddStr = u"Add"; +// [-loplugin:ostr] constexpr OUStringLiteral pItemStr = u"Item"; +// [-loplugin:ostr] constexpr OUStringLiteral pRemoveStr = u"Remove"; constexpr sal_uInt16 nCountHash = SbxVariable::MakeHashCode(pCountStr); constexpr sal_uInt16 nAddHash = SbxVariable::MakeHashCode(pAddStr);